Refactoring Static File System Access
Years ago, I was trying to test an application I'd written, but couldn't figure out how to remove a dependency it had on the file system. At the time, I was familiar with unit testing,
MANY articles on a wide array of topics. You’ll find a lot of my newer content is going to my YouTube channel first, but I do still blog occasionally.
Years ago, I was trying to test an application I'd written, but couldn't figure out how to remove a dependency it had on the file system. At the time, I was familiar with unit testing,
If you have logic that depends on dates and/or times, it can be difficult to test if it's directly accessing the system clock (via DateTime.Now in.NET, for example).
Filters are a great, often underutilized feature of ASP.NET MVC and
I've written about Enum Alternatives in C#, and a common problem
A common but insidious dependency in many.NET applications is their use of configuration, including appSettings.
Some (many) user interfaces work best when buttons are sized identically, so that instead of this: or this: You have something like this: This is pretty easy to do in JavaScript, and jQuery make it simple to apply the …
Some time ago I wrote about Moving Beyond Enums and published an
When you set up an ASP.NET Core app, most of the time you begin with the Startup.cs file, which provides essentially three places where you can add code: Constructor ConfigureServices Configure Naturally, the constructor …
In a recent article, I showed how to configure logging for your Startup class in ASP.NET Core. With this configured, it's easy to log all of the services that have been configured in ASP.NET Core services container.
There's no upper limit on how large an ASP.NET Core app can get,