Answer the question
In order to leave comments, you need to log in
How to prepare data for testing?
There is a Moq
library .
To run tests without using a database, you need to prepare test data.
var card = new Card("owner", "number", "CVV number");
paymentServiceMock.Setup(p => p.Charge(114,card)).Returns(true)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question