Getting Started with Azure Event Grid
In a previous article we got an introduction to Azure Event Grid, if you’re new to Event Grid you should check it out first to familiarise yourself with some basic concepts.In this article we’ll create...
View ArticleCreate Precompiled Azure Functions With Azure Event Grid Triggers
Visual Studio can be used to create precompiled Azure Functions using standard C# classes and tools/techniques and then they can be published to Azure.This article assumes you’ve created the resources...
View ArticleNew Free eBook: C# 7.2: What's New Quick Start
My new free eBook is now available for download.The book covers the following new features of C# 7.2:Leading Digit Separator Reference Semantics With Value Types Non-trailing Named Arguments Private...
View ArticleInvesting In You
I grew up in humble surroundings, my family was for the most part “working class”, I moved around a bit as a kid, moved schools a few times, and lived in state/council housing. At one point as a child...
View ArticleUsing the Actor Model and Akka.NET for IoT Systems
In additional to cloud-based offerings such as Microsoft’s Azure IoT Suite, it’s also possible to create representations of Internet of Things devices using the Actor Model and Akka.NET. For example,...
View ArticleDynamic Binding in Azure Functions with Imperative Runtime Bindings
When creating precompiled Azure Functions, bindings (such as a blob output bindings) can be declared in the function code, for example the following code defines a blob output...
View ArticleAutomatic Input Blob Binding in Azure Functions from Queue Trigger Message Data
Reading additional blob content when an Azure Function is triggered can be accomplished by using an input blob binding by defining a parameter in the function run method and decorating it with the...
View ArticleStack Overflow Developer Survey 2018 Overview for .NET Developers
The 2018 Stack Overflow Developer Survey was recently released. This article summarizes some interesting points that .NET developers may find interesting, in additional to some other general items of...
View ArticleTesting Precompiled Azure Functions Overview
Just because serverless allows us to quickly deploy value, it doesn’t mean that testing is now obsolete. (click to Tweet)If we’re using Azure Functions as our serverless platform we can write our code...
View ArticlePrevent Secrets From Accidentally Being Committed to Source Control in...
One problem when dealing with developer “secrets” in development is accidentally checking them into source control. These secrets could be connection strings to dev resources, user IDs, product keys,...
View ArticleMSTest V2
In the (relatively) distant past, MSTest was often used by organizations because it was provided by Microsoft “in the box” with Visual Studio/.NET. Because of this, some organizations trusted MSTest...
View ArticleCustomizing C# Object Member Display During Debugging
In a previous post I wrote about Customising the Appearance of Debug Information in Visual Studio with the DebuggerDisplay Attribute. In addition to controlling the high level debugger appearance of...
View ArticleTesting for Thrown Exceptions in xUnit.net
When writing tests it is sometimes useful to check that the correct exceptions are thrown at the expected time.When using xUnit.net there are a number of ways to accomplish this.As an example consider...
View ArticleLifelike Test Data Generation with Bogus
Bogus is a lovely library from Brian Chavez to use in automated tests to automatically generate test data of different kinds.As an example suppose the following class is involved in a unit test:public...
View ArticleSoftware Development Wheel
In business/personal coaching there is an idea of a “wheel of life”. The idea is that you evaluate different dimensions of your life and plot them on a wheel. Ideally the wheel should be balanced (and...
View ArticleUnit Testing C# File Access Code with System.IO.Abstractions
It can be difficult to write unit tests for code that accesses the file system.It’s possible to write integration tests that read in an actual file from the file system, do some processing, and check...
View ArticleSetting Up Mock ref Return Values in Moq
I recently received a message related to my Mocking in .NET Core Unit Tests with Moq: Getting Started Pluralsight course asking how to set the values of ref parameters.As a (somewhat contrived)...
View ArticleAzure Functions Dependency Injection with Autofac
This post refers specifically to Azure Function V2.If you want to write automated tests for Azure Functions methods and want to be able to control dependencies (e.g. to inject mock versions of things)...
View ArticleRemote Debugging Azure Functions V2 "The breakpoint will not currently be...
Sometimes it can be tricky to attach the Visual Studio debugger to a deployed Azure Functions app. For example if you use Cloud Explorer you can right click on the deployed Azure Function and choose...
View ArticleMocking HttpRequest Body Content When Testing Azure Function HTTP Trigger...
When creating Azure Functions that are triggered by an HTTP request, you may want to write unit tests for the function Run method. These unit tests can be executed outside of the Azure Functions...
View Article