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...

Testing done right with Vertical Slice Architecture

When exploring best practices for automated testing and Test-Driven Development (TDD), we often 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 different tests...

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, we are always on the lookout for the better way. It’s what we have been doing since the invention of the computer and software programming. The pioneers of software development laid a strong foundation and throughout the years we have improved...

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 all 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 answer to this...

How the Bulk Writer library lets you load data faster

Quick—off the top of your head, how many times have you had to write code to move a bunch of data from an external source into your application database?  Was there a requirement that the process be fast?  Yeah, we both know the answer to that one. Really, shuffling...