-
There was a comment posted on the HTTPAPIs slack earlier around versioning in HTTP APIs: { "name" : "Bart" } my client see this and can read the name field. But, what if tomorrow I change the field "name" to "title". My client will be …
-
Suppose you have a class without a parameterless constructor. public class X { public X(string y){ } } If you try to Mock said class using Moq, NSubstitute or RhinoMocks it will throw an exception try { new Moq.Mock<X>().Object.ToString(); } catch { /*throws InvalidProxyConstructorArgumentsException*/ } try { NSubstitute.Substitute.For< …
-
This weeks package is one of my projects. I created it after working with F#'s discriminated union types. What is a Discriminated Union Anyway DU types are data structures used to hold a single value of one of a fixed set of Types e.g.: type Shape = | Rectangle of …
-
Inspired by Scott Hanselman, I am going to blog about lesser known .NET packages. The twist is that I have generally published (although not necessarily written) these packages myself so this is flagrant self-promotion... Anyway, first up is MetaLinq a library for converting (normally immutable) Linq Expression trees into a …
-
What you had: What you wanted: What you got: …