Esempio n. 1
0
        public void PurchaseFromHolds_Test(RealTimeInventory inventory, uint toPurchase)
        {
            IInventoryServiceCompletedMessage response;

            using (var testHelper = CreateInventoryServiceServer(inventory))
                response = testHelper.PurchaseFromHoldsAsync(inventory, (int)toPurchase).WaitAndGetOperationResult();

            InventoryServiceSpecificationHelper.AssertPurchaseFromHolds(inventory, toPurchase, response);
        }