Moq : Setup, Verify, Verifiable & Callback explained

Consider the following method which needs to be tested. and one of the unit test of this method mockRepository.Setup(x => x.AddIncomePeriod(It.IsAny<IncomePeriod>())).Returns<IncomePeriod>(x => x).Verifiable(); ‘Setup’ mocks a method and ‘Returns’ specify…

Read more