Quantcast
Channel: Don't Code Tired
Browsing all 207 articles
Browse latest View live

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 Article


Image may be NSFW.
Clik here to view.

Free 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 Article


New 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 Article

FeatureToggle 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 Article

Multiple 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 Article


Image may be NSFW.
Clik here to view.

FeatureToggle 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 Article

Mocking 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 Article

Image may be NSFW.
Clik here to view.

Testing 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 Article


Paying 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 Article


Testing 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 Article

Image may be NSFW.
Clik here to view.

Installing 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 Article

Image may be NSFW.
Clik here to view.

Getting 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 Article

Image may be NSFW.
Clik here to view.

Grouping 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 Article


Running 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 Article

Image may be NSFW.
Clik here to view.

New 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 Article


Mocking 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 Article

FeatureToggle 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 Article


New 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 Article

Image may be NSFW.
Clik here to view.

Inspecting 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 Article

Understanding 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
Browsing all 207 articles
Browse latest View live