Moq - Setup Mock method specifying parameters of type

· Reading time: ~2 minute(s) (255 words) csharp programming testing moq

When working on my GameBrowser project this evening, I wanted to verify that a method setup on a mock object had been called when a property of the parameter object was a particular value. (Continue reading)

Creating a Terraria server in Docker on a Raspberry Pi 4B

· Reading time: ~7 minute(s) (1367 words) gaming docker infrastructure

After much difficulty, I've finally figured out how to get a Terraria server running in Docker on my Raspberry Pi 4B... (Continue reading)

Convert JavaScript Number to Number Array

· Reading time: ~1 minute(s) (89 words) programming javascript

I had a number which I wanted converting into an array where each digit of the number was an item in the array. I tried a few different ways of doing this but always ended up with a string array which wasn't what I wanted. (Continue reading)

The imported project ".../Microsoft.WebApplication.targets" was not found

· Reading time: ~2 minute(s) (253 words) programming visualstudio

We have an existing web application project at work which was failing to open in Visual Studio 2019 with the following error... (Continue reading)

Hosting Umbraco 7 on AWS Elastic Beanstalk

· Reading time: ~7 minute(s) (1419 words) programming umbraco aws

Previously at work, our marketing websites were all designed up front, with copy provided by our colleagues in Marketing and then the pages were generated by the development teams... (Continue reading)

No executable found matching command "dotnet-lambda"

· Reading time: ~1 minute(s) (93 words) programming dotnetcore aws lambda

When packaging up a dotnetcore lambda function for deployment to AWS, you could get the following error 'No executable found matching command "dotnet-lambda"' (Continue reading)

Umbraco 7: Create a custom Property Editor

· Reading time: ~4 minute(s) (805 words) programming umbraco umbraco7 csharp

Recently, I've been working on creating an implementation of Umbraco CMS for the Marketing team at work to use for quickly creating content for promotions etc... (Continue reading)

React.js Unit Testing with Jest and Enzyme

· Reading time: ~3 minute(s) (524 words) programming javascript reactjs testing

I've written loads of unit tests in my lifetime for C# and JavaScript, but never gotten around to writing any for testing the actual React components because there's always been something more pressing. Time to put that right and take the plunge. (Continue reading)