Mid Testing

How do you create a mock object using Moq?

var mockService = new Mock<IService>();

var service = mockService.Object; // use this in your test

More from C# Programming Tutorial

All questions for this course