Dev Corner

Diving deep into the code to solve your challenges and offer up expert tips
  • Category

  • Author

Streamlining your automated tests, Pt 1

TL;DR Writing automated tests for your complex scenarios is important, but it’s easy for the tests to become difficult for other developers (including your 6-month future-self) to read and understand. Using a builder method for the “happy path” that returns an object...

Vertical Slice testing done right: a tutorial

When exploring best practices for automated testing and Test-Driven Development (TDD), our software consultants refer to the Test Pyramid. This diagram describes the different kinds of tests, and the relative number of them we should aim for. The general idea is that...

Introducing ETL pipelines in the Bulk Writer Library 3.0

TL;DR A new version of the Bulk Writer library has been released. One of the major enhancements is the addition of a new helper class for creating ETL pipelines. With some fluent configuration, you can put fast, memory-efficient processing pipelines ahead of...

Organizing Razor Pages with Vertical Slice Architecture

As software developers and consultants we are always on the lookout for a better way. It’s what we have been doing since the invention of computer and software programming. The pioneers of software development laid a strong foundation and throughout the years we have...

XlsToEf: When to use it and when not to

Have you ever had an existing application using Entity Framework and then needed to import some data from spreadsheets? Maybe it was even IMPORTANT that the import go through your existing entities. For example, a customer may want to upload updated lookup tables or...

How to make the most of your xUnit test

We as software consultants know that testing is essential, but how can we make sure our tests are clean and work better for us? What do we do when we have to test the results of different input values for a single method? .NET test frameworks provide a consistent...