Skip to content

Month: January 2018

ASP.NET Core 2 Solved: Authorization was successful for user: (null).

While I was migrating an ASP.NET Core 1 project to version 2 my authentication code stopped working. After some investigation I kept running across this info message in my application logs which seemed unusual: View the code on Gist. The Fix Turns out this is a simple issue to fix. Just make sure that in the Configure() method in the Startup class contains a call to app.UseAuthentication() before the call to app.UseMvc() for example: View the code on Gist. With this method updated to include the Authentication middleware, the issue should be resolved.      

Introducing Machine Learning for QA Engineers

I believe it is a reasonable prediction that QA is one part of the software industry which will be disrupted by Machine Learning. And the role of a QA engineer will change as a result so it is important to have a grasp on the basics. This post will give you a high-level introduction to machine learning and the companies in the space working on changing how we assure quality. What is Machine Learning Arthur Samuel a pioneer in Artifical Intelligence supposedly defined Machine Learning as: Machine learning is a field of computer science that gives computers the ability to learn…

Implementing a Teardown Method in XUnit

XUnit is a free open source unit testing tool for .NET written by the original inventor of NUnit v2 which is great to work with and supports .NET Core, however, how it handles clean up is slightly different to other test frameworks you may have used. What is a TearDown Method? If you haven’t done much-automated testing before then you may not know what a TearDown method is. Typically its the method responsible for cleaning up after your test(s) have run. For example, an integration test might create data which is persisted to a database. Afterwards, this needs to be purged of data…