Unit Testing Umami.Net - Testing Umami Data Without Using Moq
In the previous part of this series where I tested Umami.Net tracking methods The Problem In the previous part I used Moq to give me a Mock<HttpMessageHandler> and return the handler used in...

Wednesday, 04 September 2024 20:30

//

7 minute read

Unit Testing Umami.Net - Logging in ASP.NET Core
I'm a relative noob using Moq (yes I'm aware of the controversies) and I was trying to test a new service I'm adding to Umami.Net, UmamiData. This is a service this allows me to pull data from my...

Wednesday, 04 September 2024 13:22

//

3 minute read

Unit Testing Umami.Net - Testing UmamiBackgroundSender
In the previous article, we discussed how to test the UmamiClient using xUnit and Moq. In this article, we will discuss how to test the UmamiBackgroundSender class. The UmamiBackgroundSender is a bit...

Tuesday, 03 September 2024 09:00

//

8 minute read

Unit Testing Umami.Net - Testing UmamiClient
Now I have the Umami.Net package out there I of course want to ensure it all works as expected. To do this the best way is to somewhat comprehensively test all the methods and classes. This is where...

Sunday, 01 September 2024 17:22

//

6 minute read

(Simple) Unit Testing The Blog Part 1 - Services
In this post I'll be starting adding Unit Testing for this site. This won't be a full tutorial on Unit Testing, but rather a series of posts on how I'm adding Unit Testing to this site. In this post I...

Sunday, 25 August 2024 23:00

//

7 minute read

logo

©2024 Scott Galloway