Test in C# using mocked objects