Using custom appsettings.json with ASP.NET Core integration tests
ASP.NET Core introduced the concept of TestServer for integration testing of web applications. Integration tests need web application run with all bells and whistles to make sure that all components work together with no flaws. Often we need special settings for integration tests as web application cannot use live services and easiest way to do it is to use special appsettings.json file. This blog post shows how to do it.
Connecting Samsung Smart TV to speakers
Few months ago I bought new Samsung smart TV with 43” UHD screen. It’s for small room. Big was my surprise if I found out that it’s not so easy to connect this very smart device to regular speakers as there’s no analog audio output. After visit to local electronics and audio shop my problem got solved. Here’s how to make Samsung Smart TV works with external speakers.
Pre-compressed static files with ASP.NET Core
Optimizing web applications is important because more economic web applications consume less CPU cycles and need less bandwidth – resources we have to pay for. It’s easy to turn on response compression on ASP.NET Core, but serving pre-compressed files needs more work. This blog post shows how to do it.
Entity Framework Core supports constructors with arguments
Keeping objects complete and valid all the time is strategy used in different methodics. It’s perhaps most popular in Domain Driven Design (DDD). Entity Framework Core 2.1 made big step forward on supporting entities that doesn’t have default empty constructor. This blog post shows how to use Entity Framework Core and entities with constructor arguments.