Posts for Csharp

ASP.NET Core API Unit Tests

ASP.NET Core API Controllers are just classes, which means they can be unit tested.

Keep reading
ASP.NET Core integration tests

Integration tests ensure that an app's components function correctly at a level that includes the app's supporting infrastructure, such as the database, file system, and network. ASP.NET Core supports integration tests using a unit test framework with a test web host and an in-memory test server.1

Keep reading
ASP.NET Core seeding the database

It can be useful to seed the database with initial data. In this post we'll take a look at one way of achieving this.

Keep reading
Wyam, Azure DevOps and GitHub Pages

Publishing a static site with a static content generator can be fully automated. In this case I'm using Wyam, a static site generator, GitHub Pages for hosting and Azure DevOps for build and deployment. Of course there are a ton of other ways to do this, but right now I'll show you the way that I chose to use.

Keep reading
Cake

This page contains some snippets and links I refer to when I'm creating Cake scripts. Most of this information can be found on the Cake website, but this should give a better overview of some things I personally use.

Keep reading
Creating styled boxes for a Wyam site

Sometimes you want to indicate a piece of information is more important then the rest. To do this you can create styled boxes with CSS. I used an example from madcapsoftware.com and applied it to Wyam.

Keep reading
Back To posts