New Pluralsight Course: Azure Function Triggers Quick Start
Azure Functions allow small discrete pieces of code to execute in response to an external stimulus such as a HTTP request, message queue message, new blob data, etc. They can also be triggered manually...
View ArticleFree eBook C# 7.0: What’s New Quick Start Complete
My new free eBook “C# 7.0: What’s New Quick Start” is now complete and available for download. The book covers the following: Literal Digit Separators and Binary Literals Throwing Exceptions in...
View ArticleNew Pluralsight Course: Reducing C# Code Duplication in Azure Functions
Azure Functions allow small discrete pieces of code to execute in response to an external stimulus such as a HTTP request, message queue message, new blob data, etc. Just because functions are easy to...
View ArticleFeatureToggle v4 RC1 with .NET Core Support
The pre-release RC1 version of FeatureToggle with .NET Core support is now available on NuGet.See release notes and GitHub issues for additional background/breaking changes/limitations.The main drive...
View ArticleMultiple Platform Targeting in Visual Studio 2017
Suppose you are creating a library that has a central set of features and also additional features that are only available on some platforms. This means that when the project is built there are...
View ArticleFeatureToggle v4 RC2 with .NET Core Configuration Changes
The pre-release RC2 version of FeatureToggle with .NET Core support is now available on NuGet. See release notes and GitHub issues for additional background/breaking changes/limitations. RC2 builds on...
View ArticleMocking in .NET Core Tests with Moq
When writing automated tests it is sometimes useful to isolate the thing(s) being tested from other parts of the system. These ‘other’ parts may still need to be provided, and sometimes the real...
View ArticleTesting ASP.NET Core MVC Controllers: Getting Started
When writing ASP.NET Core MVC web applications, you may want to test that controller actions behave in the expected way, for example that the action returns the correct result type (e.g. a ViewResult)...
View ArticlePaying Your Software Development Tax
In software development we already have the technical debt metaphor that helps describe the the fact that a quick and dirty approach now, may create problems in the future. For example getting a...
View ArticleTesting ASP.NET Core Controllers in Isolation with Mock Objects and Moq
In previous posts we saw how to get started testing ASP.NET Core MVC controllers and also how to use the Moq mocking library in .NET Core tests.If there is code in controllers that needs testing, but...
View ArticleInstalling and Configuring a UPS with Windows 10
The power grid at my home office is sometimes unreliable. In the last year there have been several power outages ranging from several hours to transient outages of a few seconds.My main PC is a silent...
View ArticleGetting Started Testing .NET Core Code with xUnit.net
xUnit.net is a testing framework that can be used to write automated tests for .NET (full) framework and also .NET Core.To get started, first create a .NET Core application, in the following example a...
View ArticleGrouping and Filtering Tests in Visual Studio Test Explorer
One way to run automated tests is to use Visual Studio’s Test Explorer. Test Explorer can be found under the Test –> Windows –> Test Explorer menu items.In this article we’ll look at how to...
View ArticleRunning and Filtering Tests with the .NET Core Command Line Test Runner
In a previous article we saw how to use Visual Studio’s Test Explorer to filter and run subsets of automated tests.If we’re working with .NET Core, in addition to using Test Explorer (or other 3rd...
View ArticleNew Free C# 7.1: What's New Quick Start eBook
My new free eBook “C# 7.0: What’s New Quick Start” is now complete and available for download. The book has the following chapters:Enabling C# 7.1 Features Asynchronous Main Methods Tuple Name...
View ArticleMocking with FeatureToggle
I was asked a question on Twitter so I thought I’d write it up here.When using the FeatureToggle library you may have some some code that behaves differently if a toggle is enabled.When writing a test,...
View ArticleFeatureToggle v4 Released
Version 4 of FeatureToggle is now released. This release adds initial support for .NET Core. Example code.Release notes.Breaking Changes:Min framework now 4.6.1 / .NET Standard 1.4 Windows 8.n, Windows...
View ArticleNew Pluralsight Course: Writing and Testing Precompiled Azure Functions in...
Azure Functions have come a long way in a short time. With newer releases you can now create functions in Visual Studio using standard C# class files along with specific attributes to help define...
View ArticleInspecting HTTP Requests With RequestBin
RequstBin is a free community project from Runscope. It allows you to generate a test URL that will capture requests sent to it and allow you to view details of those requests. This may be useful when...
View ArticleUnderstanding Azure Event Grid
Azure Event Grid (currently in preview) is a managed publisher-subscriber service that pushes events to registered subscribers.Azure Event Grid does not replace other services such as Azure Service Bus...
View Article