Esempio n. 1
0
 protected override void Given()
 {
     _id            = 123;
     _purchaseOrder = new PurchaseOrder(_id);
     _sut           = new InMemoryPurchaseOrderRepository();
     _sut.Save(_purchaseOrder);
 }
Esempio n. 2
0
        private static void RunExample()
        {
            // Dependency Injection wiring
            IPurchaseOrderRepository purchaseOrderRepository = new InMemoryPurchaseOrderRepository();

            var coordinator = new Coordinator(purchaseOrderRepository);

            coordinator.Run(1);
        }
Esempio n. 3
0
            protected override void Given()
            {
                _id            = 123;
                _purchaseOrder = new PurchaseOrder(_id);
                var anotherPurchaseOrder = new PurchaseOrder(_id + 1);
                var lastPurchaseOrder    = new PurchaseOrder(_id + 2);

                _sut = new InMemoryPurchaseOrderRepository();
                _sut.Save(_purchaseOrder);
                _sut.Save(anotherPurchaseOrder);
                _sut.Save(lastPurchaseOrder);
            }
 protected override void When()
 {
     _sut = new InMemoryPurchaseOrderRepository();
 }