A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
We’ve been talking about various design principles in the last few posts. So how does this relate to (unit) testing? In a recent talk I attended by Michael Feathers one of the many good points he made was this: Design your application in a good w...
Let’s take a moment and think about what this programming to an interface and not an implementation can do for us. For instance, imagine that you want to test the following scenarios. 1. The service is unavailable and thus throws a System.Net.WebE...
Let’s return to our weather data from part 1. In it’s current state it looks something like this So the weather service is using YrNoWeatherRepository to load some xml and then a mapper to map from that xml to properties on the WeatherData class....
( Head here for an introduction ) ( Head here for part one ) Now let’s look at the SaveClick method 1: protected void SaveClick( object sender, EventArgs e) 2: { 3: var newMainBody = NewMainBody.Text; 4: 5: newMainBody = newMainBody 6:...
( Head here for an introduction ) So, to start let’s try and do a quick analysis of exactly what the OnLoad method in our page does in it’s current form. The OnLoad method 1: protected override void OnLoad(System.EventArgs e) 2: { 3: base...