Ergamon

Results 25 comments of Ergamon

I looked at the library today for evaluation. The way AutoFixture works, it does not play nice with it. AutoFixture just sees a class with an empty constructor. So indeed...

I think he means the problem that the library does not prohibit this: ``` public class Email : ValueOf { } var email = new Email(); ``` So later on,...

There is lots of code missing to get this into an working example. I can only guess from what I see. Never, ever use Returns on Non-Substitutes. So all these...

Probably a matter of Taste. The developer put a class constraint on these extensions. So you cannot use them for nullable structs. Sadly a C# restriction. There is no way...

Sadly I cannot see the code for IQuery and the GetCustomerQuery class, also not where this method resides. NSubstitute is primary designed for architectures using interfaces as contract definitions. So...

Not really heavily tested, but you can probably try your luck with an extension like this: ``` public static class SubstituteExtensions { public static void Decorate(this T substitute, T decoratee)...

I cant really explain why, but the problem is the "null" in the expectation. Seems NSubstitute cannot figure the right Arg.Is syntax in that case. If you replace the null...

The problem is the await of the result from the Received call. Basically this is how NSubstitute works. The Received method call is to check, if the right action has...

Take a look at AutoFixture. The purpose of AutoFixture is to work like this. AutoFixture does not know how to create interfaces. For this it relies on some kind of...

The code looks basically double wrong. The signature of SendMessagesAsync looks like this: ``` public virtual async Task SendMessagesAsync( IEnumerable messages, CancellationToken cancellationToken = default) ``` So you are having...