Verifying calls with NSubstitute
This one came up recently so I thought I would do a post for my future self, so I have something to come back to. Being a conscientious developer 1 I was creating unit tests and I found a situation where I wanted to verify the call to a method was the expected call, in this case the functionality being tested was creating an object and then calling a repository to persist this, I needed to check the object being persisted was as I expected.
tips (7)
dotnet (7)
aspnet (4)
VueJs (3)
(3)
unit testing (2)
HowTo (2)
ASP.NET (2)
NSubstitute (1)
sln (1)
proj (1)
productivity (1)
ADNUG (1)
Twitch (1)
YouTube (1)
blog (1)
wyam (1)
Azure (1)
RGUHack (1)
dotnet core (1)
Middleware (1)
Identity Provider (1)
PowerShell (1)
Telerik (1)
Web (1)
Development (1)
TFS (1)