public void WhenIGetShoppingBagPaymentsDataFromFile(string file) { string data = DataFiles.ReadJsonDataFile(file); ShoppingBag bag = ObjectSerializer.DeserializeToObject <ShoppingBag>(data); sharedStorage.SetSharedInfo(ContextTag.ShoppingBagPaymentData, bag); }
public void GivenIGetPickupDataFromFile(string file) { string data = DataFiles.ReadJsonDataFile(file); ProfileSettings settings = ObjectSerializer.DeserializeToObject <ProfileSettings>(data); sharedStorage.SetSharedInfo(ContextTag.SettingData, settings); }
public void GivenIGetStorefrontDataFromFile(string file) { string data = DataFiles.ReadJsonDataFile(file); StorefrontData storefront = ObjectSerializer.DeserializeToObject <StorefrontData>(data); sharedStorage.SetSharedInfo(ContextTag.GetStorefrontData, storefront); }