Tag Archives: Code

Unittesting R scripts

We’re building a solution that uses some R scripts for data analysis and cleanup. The R scripts are tested during the integration phase when the database is available. We would like to test the scripts when new versions are pushed … Continue reading

Posted in Development, Test | Tagged , , | Leave a comment

Webapi core 2.1 and jQuery (CORS)

I’ve written before about Cordova, AngularJs, WebApi and CORS. (Cross Origin Resource Sharing) Now we have te same hurdle to take with our dotnet core 2.1 webapi. Since the webapi is on a webserver and accessible to third parties we decided … Continue reading

Posted in Development | Tagged , , , | Leave a comment

Bogus – testdata generator

Photo by Steve Harvey on Unsplash https://www.nuget.org/packages/bogus Creating testdata is not my favourite task. With bogus I can define the rules the data must adhere and generate as much data as I need. The rules are setup with fluent syntax … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment

EF core: entity cannot be tracked

We use EF core to store a bulk of data with an auto-number primary key. The auto-number is an Identity column in Sql Server. When inserting a large amount of records with related children we encounter this error: System.InvalidOperationException entity … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment

AutoMoqCore – auto mocking IoC

Photo by Phillip Glickman on Unsplash https://www.nuget.org/packages/AutoMoqCore/ Dependency¬†Inversion¬†is one of the SOLID principles. This can be applied to unittesting as well. With AutoMoqCore I can develop robust unittests that will always compile. Focus on the smallest possible code for your … Continue reading

Posted in Development, Tooling | Tagged , , , | Leave a comment