Unit Testing EF Data With Moq

Introduction I’ve discussed using the in-memory Entity Framework unit tests in a previous post (here).  In this post, I’m going to demonstrate a simple way to use Moq to unit test a method that uses Entity Framework Core. Setup For this sample, I used the POCOs, context and config files from this project (here).  You … Read moreUnit Testing EF Data With Moq

What .Net Developers Should Know about MS SQL and IIS

Summary In this post, I’m going to explain a couple techniques and tools that every developer should know.  If you are just graduating from college and you are looking for a .Net job, learn these simple techniques and advance your career.  If you’re a mid-level to advanced .Net developer and you don’t know these tools … Read moreWhat .Net Developers Should Know about MS SQL and IIS

XML Serialization

Summary In this post I’m going to demonstrate the proper way to serialize XML and setup unit tests using xUnit and .Net Core.  I will also be using Visual Studio 2017. Generating XML JSON is rapidly taking over as the data encoding standard of choice.  Unfortunately, government agencies are decades behind the technology curve and … Read moreXML Serialization

Environment Configuration

Introduction We’ve all modified and saved variables in the web.config and app.config files of our applications.  I’m going to discuss issues that occur when a company maintains multiple environments. Environments When I talk about environments, I’m talking about entire systems that mimic the production system of a company.  An example is a development environment, a … Read moreEnvironment Configuration