New answers tagged

8 votes

Does C# 8 reference type nullability make Option/Result monad obsolete?

Option types and checked nullability largely solve the same problem, but there a few significant differences. Checked nullability in C# is not is not totally safe. It is more like a lint than a true ...
JacquesB's user avatar
  • 59.6k
4 votes

Benefits of resolving dependencies with IServiceCollection and IServiceProvider for Unit Tests instead of inheriting mocks from a base test class

Preconfigured Mocks or base test classes share a similar problem. Your tests can become more complex than what you are testing. The main benefit of Arrange, Act, Assert is that the whole test is ...
Ewan's user avatar
  • 75.8k

Top 50 recent answers are included