Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created March 19, 2017 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/ab78fc2b86fd344abd45947b9dea047e to your computer and use it in GitHub Desktop.
Save angelovstanton/ab78fc2b86fd344abd45947b9dea047e to your computer and use it in GitHub Desktop.
[TestMethod]
public void Purchase_ShoppingCartFacade()
{
var itemUrl = "/Selenium-Testing-Cookbook-Gundecha-Unmesh/dp/1849515743";
var itemPrice = "40.49";
var clientPurchaseInfo = new ClientPurchaseInfo(
new ClientAddressInfo()
{
FullName = "John Smith",
Country = "United States",
Address1 = "950 Avenue of the Americas",
State = "New York",
City = "New York City",
Zip = "10001-2121",
Phone = "00164644885569"
});
clientPurchaseInfo.CouponCode = "99PERDIS";
var clientLoginInfo = new ClientLoginInfo()
{
Email = "g3984159@trbvm.com",
Password = "ASDFG_12345"
};
var shoppingCart = container.Resolve<ShoppingCart>();
shoppingCart.PurchaseItem(itemUrl, itemPrice, clientLoginInfo, clientPurchaseInfo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment