Beispiel #1
0
        public void TestIfGetArchivedOrdersCallsGetArchivedOrdersInRepo()
        {
            // Arrange

            var repo    = new Mock <IOrderRepository>();
            var manager = new OrderAccess(repo.Object);


            // Act

            manager.GetArchivedOrders();


            // Assert

            repo.Verify(x => x.GetArchivedOrders(), Times.Exactly(1));
        }