My interface is like
public interface ISomeService
{
void DoStuff();
}
Interface invoke in unit testing method like
[TestInitialize]
public void MessageHandlerTest_Initialize()
{
Mock<ISomeService> _mockSomeService = new Mock<ISomeService>();
ISomeService view = _mockSomeService.Object;
}
Aucun commentaire:
Enregistrer un commentaire