public void TestIfGetOrdersCallsGetOrdersInRepo() { // Arrange var repo = new Mock <IOrderRepository>(); var manager = new OrderAccess(repo.Object); // Act manager.GetOrders(); // Assert repo.Verify(x => x.GetOrders(), Times.Exactly(1)); }