Esempio n. 1
0
 public SKUResult For(SKU sku)
 {
     var matchingItem = Items.FirstOrDefault(x => x.Colour == sku.Colour &&
                                                  x.Size == sku.Size &&
                                                  x.StyleCode == sku.Style.Code);
     return matchingItem ?? new SKUResult(new NonExistentElement(""));
 }
Esempio n. 2
0
 public Action ChooseToLookForStockFor(SKU sku)
 {
     return () =>
     {
         On<SKUInquiryResultsPage>().Results.For(sku).View();
         Wait.For(() => On<StockInquiryResultsPage>().IsReady(), "The stock results never appeared");
     };
 }