Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. [TestMethod, Benchmark]
  2. public void Inventory_GetInv_Ok()
  3. {
  4. //ARRANGE
  5. var items = new List<ItemRequest> {
  6. new ItemRequest { SKU = "0010015488000060", ReqQty = 2 } ,
  7. new ItemRequest { SKU = "0010015491000060", ReqQty = 1 }
  8. };
  9.  
  10. //ACT
  11. //This is a WCF SOAP client making a service request.
  12. invResponse = client.GetInv("US", items);
  13. var inventory = invResponse.ItemInvResults;
  14.  
  15. //ASSERT
  16. Assert.AreEqual(2, inventory.Count);
  17. Assert.IsTrue(inventory.Any(x => x.AvailQty > 0));
  18. }
Add Comment
Please, Sign In to add comment