Please enable JavaScript.
Coggle requires JavaScript to display documents.
ESR-10961-Test Harness - Product Selector (\UI\esw.CheckOut.UI\Areas\ …
ESR-10961-Test Harness -
Product Selector
\UI\esw.CheckOut.UI\Areas\
TestHarness\Views\PreOrder\
Index.cshtml
\UI\esw.CheckOut.UI\Areas\
TestHarness\Views\PreOrder\
_PreOrderBrandSpecific.cshtml
$("#test-harness-form")
.on("submit", function (e)
var frmValues =
$this.serialize();
frmValues
Environment=UATRC
&BrandId=13
&Username=testharness
&Password=p%40ssword1
&OrderConfirm=0&OrderNumber=TH863259001
&Products%5B0%5D.ProductCode=111119.00&Products%5B0%5D.Quantity=1
&Products%5B0%5D.Price=10&Products%5B0%5D.BillingPrice=10
&Products%5B0%5D.OverridePrice=false
&ShipBasePrice=2
&ShipBillingPrice=2
&ShipCatalogOverride=false
&PaymentCurrency=DKK
&BillingCountry=AD
&ShippingCountry=AD
&ShippingAndRegion.ServiceLevel=POST
&FxRateId=269
&ClientDevice=desktop&Language=en
action="/TestHarness
/PreOrder"
\UI\esw.CheckOut.UI\Areas\
TestHarness\Controllers\
PreOrderController.cs
[HttpPost]
public JsonResult
Index(PreOrderViewModel po)
switch (po.BrandId) ?
TheSting
preOrderResponse =
CallCheckoutApi(po)
VictoriaSecrets
preOrderResponse =
CallVsRetailerApi(po)
default
preOrderResponse =
CallCheckoutRestApi(po)
CreatePreOrderDetailsRequest
(PreOrderViewModel)
1 more item...
method="post"
Page Load
[GET]
public ActionResult Index()
PreOrderViewModel CreatePreOrderViewModel
(string targetEnvironment, int brandId = 0)