public async void AddToCartUrlShouldContainAssociateTag()
 {
     string asin = "B00MHIWT8O";
     string offerlistingid = "GT5MOtJKMw77jOdMW4BTQj5%2B7tzBJuDfhgPgizmTlVpta1FvMD5GdoAedgwNH%2FFLrD1ZTXIliEGoE0VilYpxIUpnga3C%2BgE7ak6ILebxaKlu6Dl8Ad5%2BGNwqV8dM9uHbNqzTCj7n6C8c%2F13NocmgVdqxvviGmfNh";
     funcForAddToCart = (url) => Task.FromResult(XDocument.Load(@"Assets\cartcreate.xml"));
     var awsconfigurationforcartCreate = new AwsConfiguration(awskey, awsSecretKey, destination, apiVersion, associateTag, "http://webservices.amazon.com/AWSECommerceService/2011-08-01");
     var amazonapiforcartCreate = new AmazonProductApi(awsconfigurationforcartCreate);
     AmazonShoppingCart shoppingCart = await amazonapiforcartCreate.AddToCart(offerlistingid, asin, funcForAddToCart);
     Assert.Contains(associateTag, shoppingCart.PurchaseUrl);
 }
        public async void GetCartShouldNotBeEmptyOrNull()
        {
            string asin = "B00MHIWT8O";
            string offerlistingid = "GT5MOtJKMw77jOdMW4BTQj5%2B7tzBJuDfhgPgizmTlVpta1FvMD5GdoAedgwNH%2FFLrD1ZTXIliEGoE0VilYpxIUpnga3C%2BgE7ak6ILebxaKlu6Dl8Ad5%2BGNwqV8dM9uHbNqzTCj7n6C8c%2F13NocmgVdqxvviGmfNh";
            funcForAddToCart = (url) => Task.FromResult(XDocument.Load(@"Assets\cartcreate.xml"));
            var awsconfigurationforcartCreate = new AwsConfiguration(awskey, awsSecretKey, destination, apiVersion, associateTag, "http://webservices.amazon.com/AWSECommerceService/2011-08-01");
            var amazonapiforcartCreate = new AmazonProductApi(awsconfigurationforcartCreate);
            AmazonShoppingCart shoppingCart = await amazonapiforcartCreate.AddToCart(offerlistingid, asin, funcForAddToCart);

            // add multiple items..
            string secondOfferlistingId = "zd2pVJTM5AmYa6u1atwuQvHljDgDEozIAObG38viMz21SO5PNOSFB4Y4uke%2BRImUem3L2A6uciG6%2F2EjYgnufv0eZv%2BVcQ2FRL54S8LHhwitXUkG4ZFMgA%3D%3D";
            asin = "B00ZQ4JQAA";
            funcForAddToCart = (url) => Task.FromResult(XDocument.Load(@"Assets\addtocartmultipleitem.xml"));
            AmazonShoppingCart shoppingCartItems = await amazonapiforcartCreate.AddToCart(secondOfferlistingId, asin, shoppingCart.CartId, shoppingCart.Hmac, funcForAddToCart);

            ////get the cart details with getcart operations...
            var getCart = await amazonapi.GetCart(shoppingCart.CartId, shoppingCart.Hmac);
            Assert.Contains(associateTag, getCart.PurchaseUrl);
        }