public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(config); var cartAddRequest = RequestBuilder.GetCartAddRequestForShoes(); var cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(); cartAddRequest = RequestBuilder.GetCartAddRequestForGiftCard(); cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(); cartAddRequest = RequestBuilder.GetCartAddRequestForAccessories(); cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); var cartDetail = new BaseIntegrationTest <CartDetail, CartResponse>(); var cartDetailRequest = new EmptyRequest(); var cartDetailResponse = (Response <CartResponse>)cartDetail.TestObject.Execute(cartDetailRequest); _itemCountBefore = cartDetailResponse.resultset.Cart.CartItemCount; var cartRemove = new BaseIntegrationTest <CartRemove, CartResponse>(); var cartRemoveRequest = RequestBuilder.GetCartRemoveRequest(cartDetailResponse.resultset.Cart.CartItems); _result = (Response <CartResponse>)cartRemove.TestObject.Execute(cartRemoveRequest); _itemCountAfter = _result.resultset.Cart.CartItemCount; _testObject = cartRemove.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(config); var cartAddRequest = RequestBuilder.GetCartAddRequestForShoes(); var cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(); cartAddRequest = RequestBuilder.GetCartAddRequestForAccessories(); cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); var cartDetail = new BaseIntegrationTest <CartDetail, CartResponse>(); var cartDetailRequest = new EmptyRequest(); var cartDetailResponse = (Response <CartResponse>)cartDetail.TestObject.Execute(cartDetailRequest); var checkoutBegin = new BaseIntegrationTest <CheckoutBegin, CheckoutResponse>(); var checkoutBeginRequest = new EmptyRequest(); var checkoutBeginResponse = (Response <CheckoutResponse>)checkoutBegin.TestObject.Execute(checkoutBeginRequest); var checkoutGuest = new BaseIntegrationTest <CheckoutGuest, CheckoutResponse>(); var checkoutGuestRequest = new EmptyRequest(); _result = (Response <CheckoutResponse>)checkoutGuest.TestObject.Execute(checkoutGuestRequest); _testObject = checkoutGuest.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var init = new BaseIntegrationTest <Init, InitResponse>(config); var initRequest = RequestBuilder.GetInitRequest(); _result = (Response <InitResponse>)init.TestObject.Execute(initRequest); _testObject = init.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var productDetail = new BaseIntegrationTest <ProductDetail, ProductDetailResponse>(config); var productDetailRequest = RequestBuilder.GetProductDetailRequest(); _result = (Response <ProductDetailResponse>)productDetail.TestObject.Execute(productDetailRequest); _testObject = productDetail.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var ProductLocator = new BaseIntegrationTest <ProductLocator, ProductLocatorResponse>(config); var ProductLocatorRequest = RequestBuilder.GetProductLocatorRequest(); _result = (Response <ProductLocatorResponse>)ProductLocator.TestObject.Execute(ProductLocatorRequest); _testObject = ProductLocator.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var forgotPassword = new BaseIntegrationTest <ForgotPassword, AccountOrderDetailResponse>(config); var forgotPasswordRequest = RequestBuilder.GetInvalidForgotPasswordRequest(); _result = (Response <BoolResponse>)forgotPassword.TestObject.Execute(forgotPasswordRequest); _testObject = forgotPassword.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var login = new BaseIntegrationTest <Login, BoolResponse>(config); var loginRequest = RequestBuilder.GetIncorrectLoginRequest(); _result = (Response <BoolResponse>)login.TestObject.Execute(loginRequest); _testObject = login.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var orderLookup = new BaseIntegrationTest <OrderLookup, AccountOrderDetailResponse>(config); var orderLookupRequest = RequestBuilder.GetInvalidOrderLookupRequest(); _result = (Response <AccountOrderDetailResponse>)orderLookup.TestObject.Execute(orderLookupRequest); _testObject = orderLookup.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var menu = new BaseIntegrationTest <Menu, MenuResponse>(config); var menuRequest = RequestBuilder.GetMenuRequest(); _result = (Response <MenuResponse>)menu.TestObject.Execute(menuRequest); _testObject = menu.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var stores = new BaseIntegrationTest <StoreLocator, StoreLocatorResponse>(config); var storesRequest = RequestBuilder.GetStoresRequestWithLatLong(); _result = (Response <StoreLocatorResponse>)stores.TestObject.Execute(storesRequest); _testObject = stores.TestObject; }
public static async Task <AuthorizationTokenDTO> DocuSign_AuthToken(BaseIntegrationTest integrationTest) { var creds = new CredentialsDTO() { Username = "******", Password = "******", IsDemoAccount = true }; string endpoint = integrationTest.GetTerminalUrl() + "/authentication/token"; var jobject = await integrationTest.HttpPostAsync <CredentialsDTO, JObject>(endpoint, creds); var result = JsonConvert.DeserializeObject <AuthorizationTokenDTO>(jobject.ToString()); Assert.IsNullOrEmpty(result.Error, "Failed to aquire DocuSign auth token"); return(result); }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var stores = new BaseIntegrationTest <StoreLocator, StoreLocatorResponse>(config); var storesRequest = RequestBuilder.GetStoresRequestWithZip(); _result = (Response <StoreLocatorResponse>)stores.TestObject.Execute(storesRequest); var test = _result.resultset.Locations.Find(x => x.Hours.Count != 7); _testObject = stores.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var menu = new BaseIntegrationTest <Menu, MenuResponse>(config); var menuRequest = RequestBuilder.GetMenuRequest(); var menuResponse = (Response <MenuResponse>)menu.TestObject.Execute(menuRequest); var search = new BaseIntegrationTest <Search, SearchResponse>(); var searchRequest = RequestBuilder.GetNextPageCategorySearchRequestForMidCategory(); _result = (Response <SearchResponse>)search.TestObject.Execute(searchRequest); _testObject = search.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var login = new BaseIntegrationTest <Login, BoolResponse>(config); var loginRequest = RequestBuilder.GetLoginRequest(); var loginResponse = (Response <BoolResponse>)login.TestObject.Execute(loginRequest); var getAccountAddresses = new BaseIntegrationTest <GetAccountAddresses, GetAccountAddressesResponse>(); var getAccountAddressesRequest = new EmptyRequest(); _result = (Response <GetAccountAddressesResponse>)getAccountAddresses.TestObject.Execute(getAccountAddressesRequest); _testObject = getAccountAddresses.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(config); var cartAddRequest = RequestBuilder.GetCartAddRequest(); var cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); var getShippingMethods = new BaseIntegrationTest <GetShippingMethods, CartResponse>(); var getShippingMethodsRequest = new EmptyRequest(); _result = (Response <GetShippingMethodsResponse>)getShippingMethods.TestObject.Execute(getShippingMethodsRequest); _testObject = getShippingMethods.TestObject; }
public static void Initialize(TestContext context) { var config = new TestConfig { ResetHttpContext = true }; var cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(config); var cartAddRequest = RequestBuilder.GetCartAddRequestForShoes(); var cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(); cartAddRequest = RequestBuilder.GetCartAddRequestForGiftCard(); cartAddResponse = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); cartAdd = new BaseIntegrationTest <CartAdd, CartResponse>(); cartAddRequest = RequestBuilder.GetCartAddRequestForAccessories(); _result = (Response <CartResponse>)cartAdd.TestObject.Execute(cartAddRequest); _testObject = cartAdd.TestObject; }
public static async Task <Fr8DataDTO> Prepare_DocuSign_Events_For_Storage_v1_InitialConfiguration_Fr8DataDTO(BaseIntegrationTest integrationTest) { var activityTemplate = Record_DocuSign_Envelope_v1_ActivityTemplate(); var activityDTO = new ActivityDTO() { Id = Guid.NewGuid(), Label = "Record DocuSign", AuthToken = await DocuSign_AuthToken(integrationTest), ActivityTemplate = activityTemplate }; return(ConvertToFr8Data(activityDTO)); }
public static async Task <Fr8DataDTO> Send_DocuSign_Envelope_v1_Example_Fr8DataDTO(BaseIntegrationTest integrationTest) { var activityTemplate = Send_DocuSign_Envelope_v1_ActivityTemplate(); var activityDTO = new ActivityDTO() { Id = Guid.NewGuid(), Label = "Send DocuSign", AuthToken = await DocuSign_AuthToken(integrationTest), ActivityTemplate = activityTemplate }; return(ConvertToFr8Data(activityDTO)); }
public static async Task <Fr8DataDTO> Query_DocuSign_v1_InitialConfiguration_Fr8DataDTO(BaseIntegrationTest integrationTest) { var activityTemplate = Query_DocuSign_v1_ActivityTemplate(); var activityDTO = new ActivityDTO() { Id = Guid.NewGuid(), Label = "Query DocuSign", AuthToken = await DocuSign_AuthToken(integrationTest), ActivityTemplate = activityTemplate }; return(ConvertToFr8Data(activityDTO)); }
public static async Task <Fr8DataDTO> Extract_Data_From_Envelopes_v1_InitialConfiguration_Fr8DataDTO(BaseIntegrationTest integrationTest) { var activityTemplate = Extract_Data_From_Envelopes_v1_ActivityTemplate(); var activityDTO = new ActivityDTO() { Id = Guid.NewGuid(), Label = "Extract Data From Envelopes", AuthToken = await DocuSign_AuthToken(integrationTest), ActivityTemplate = activityTemplate }; return(ConvertToFr8Data(activityDTO)); }