public void RetrieveOrderServiceTest() { Order order = ObjectMother.GetOrder(); var repositoryFake = new Mock<IOrderRepository>(); repositoryFake.Setup(r => r.Get(1)).Returns(order); IOrderService service = new OrderService(repositoryFake.Object); var orderFake = service.Retrieve(1); repositoryFake.Verify(r => r.Get(1)); Assert.IsNotNull(orderFake); }