public void SidesContainsPanDeCampo() { IOrderItem pan = new PanDeCampo(); IEnumerable <IOrderItem> sidesList = Menu.Sides(); Assert.Contains(pan, sidesList); }
public void AllContainsPanDeCampo() { IOrderItem pan = new PanDeCampo(); IEnumerable <IOrderItem> menuList = Menu.All(); Assert.Contains(pan, menuList); }
public void ChangingSizeShouldInvokePropertyChangedForCalories() { var pdc = new PanDeCampo(); pdc.Size = Size.Large; Assert.Equal(pdc.Calories, SideInformation.LARGE_PANDECAMPO_CALORIES); }
/// <summary> /// Adds Pan de Campo /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Pan_de_Campo(object sender, RoutedEventArgs e) { var side = new PanDeCampo(); var screen = new CustomizedPanDeCampo(); AddItemAndOpenCustomizationScreen(side, screen); }
public void ChangingSizeShouldInvokePropertyChangedForPrice() { var pdc = new PanDeCampo(); pdc.Size = Size.Large; Assert.Equal(pdc.Price, SideInformation.LARGE_PANDECAMPO_PRICE); }
public void ChangingSizeShouldInvokePropertyChangedForSize() { var pdc = new PanDeCampo(); pdc.Size = Size.Large; Assert.Equal(Size.Large, pdc.Size); }
/// <summary> /// Listener for the click event of the Pan de Campo Button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void OnAddPanDeCampoButton_Clicked(object sender, RoutedEventArgs e) { PanDeCampo p = new PanDeCampo(); var screen = new CustomizePanDeCampo(); AddItemAndOpenCustomizationScreen(p, screen); }
public void ChangingSizePropertyShouldInvokePropertyChangedForCalories() { var pan = new PanDeCampo(); Assert.PropertyChanged(pan, "Calories", () => { pan.Size = Size.Medium; }); }
public void ChangingSizeToLargeInvokesPropertyChangedForSize() { var campo = new PanDeCampo(); Assert.PropertyChanged(campo, "Size", () => campo.Size = Size.Large ); }
public void ChaningSizePropertyshouldNotifyCalories() { var panDeCampo = new PanDeCampo(); Assert.PropertyChanged(panDeCampo, "Calories", () => { panDeCampo.Size = Size.Large; }); }
public void ChangingSizePropertyShouldInvokePropertyChangedForSize() { var c = new PanDeCampo(); Assert.PropertyChanged(c, "Size", () => { c.Size = Size.Medium; }); }
public void ShouldUseCorrectPriceForSize(Size size, double price) { PanDeCampo pdc = new PanDeCampo(); pdc.Size = Size.Medium; pdc.Size = size; Assert.Equal(price, pdc.Price); }
public void PanDeCampoShouldImplementINotifyPropertyChanged() { var pdc = new PanDeCampo(); Order newOrder = new Order(1); newOrder.Add(pdc); Assert.IsAssignableFrom <INotifyPropertyChanged>(newOrder); }
public void ChangingSizePropertyShouldInvokePropertyChangedForPrice() { var panDeCampo = new PanDeCampo(); Assert.PropertyChanged(panDeCampo, "Price", () => { panDeCampo.Size = Size.Medium; }); }
public void ChangingSizePropertyShouldInvokeProperyChangedForCalories() { var panDeCampo = new PanDeCampo(); Assert.PropertyChanged(panDeCampo, "Calories", () => { panDeCampo.Size = Size.Large; }); }
public void ChangingSizePropertyShouldInvokePropertyChangedForPrice() { var pan = new PanDeCampo(); Assert.PropertyChanged(pan, "Price", () => { pan.Size = Size.Large; }); }
public void ShouldUseCorrectCaloriesForSize(Size size, uint calories) { PanDeCampo pdc = new PanDeCampo(); pdc.Size = Size.Medium; pdc.Size = size; Assert.Equal <uint>(calories, pdc.Calories); }
public void ShouldReturnAllSides() { var result = new List <IOrderItem>(); CornDodgers dodgersSmall = new CornDodgers(); dodgersSmall.Size = Size.Small; result.Add(dodgersSmall); CornDodgers dodgersMedium = new CornDodgers(); dodgersMedium.Size = Size.Medium; result.Add(dodgersMedium); CornDodgers dodgersLarge = new CornDodgers(); dodgersLarge.Size = Size.Large; result.Add(dodgersLarge); ChiliCheeseFries chiliSmall = new ChiliCheeseFries(); chiliSmall.Size = Size.Small; result.Add(chiliSmall); ChiliCheeseFries chiliMedium = new ChiliCheeseFries(); chiliMedium.Size = Size.Medium; result.Add(chiliMedium); ChiliCheeseFries chiliLarge = new ChiliCheeseFries(); chiliLarge.Size = Size.Large; result.Add(chiliLarge); BakedBeans bakedSmall = new BakedBeans(); bakedSmall.Size = Size.Small; result.Add(bakedSmall); BakedBeans bakedMedium = new BakedBeans(); bakedMedium.Size = Size.Medium; result.Add(bakedMedium); BakedBeans bakedLarge = new BakedBeans(); bakedLarge.Size = Size.Large; result.Add(bakedLarge); PanDeCampo campoSmall = new PanDeCampo(); campoSmall.Size = Size.Small; result.Add(campoSmall); PanDeCampo campoMedium = new PanDeCampo(); campoMedium.Size = Size.Medium; result.Add(campoMedium); PanDeCampo campoLarge = new PanDeCampo(); campoLarge.Size = Size.Large; result.Add(campoLarge); Assert.Equal(result.Count(), Menu.Sides().Count()); }
public void ChangingSizeShouldInvokePropertyChangedForSpecialInstructions() { var side = new PanDeCampo(); Assert.PropertyChanged(side, "SpecialInstructions", () => { side.Size = Size.Medium; }); }
public void PanDeCampoSizeChangeShouldChangeTheCalories() { var item = new PanDeCampo(); Assert.PropertyChanged(item, "Calories", () => { item.Size = Size.Medium; }); }
public void ChangingSizeShouldInvokePropertyChangedForToString() { var item = new PanDeCampo(); Assert.PropertyChanged(item, "ToString", () => { item.Size = Size.Large; }); }
public void ChangingSizeShouldInvokePropertyChangeForSize() { var decampo = new PanDeCampo(); Assert.PropertyChanged(decampo, "Size", () => { decampo.Size = Size.Large; }); }
public void PanDeCampoSizeChangeShouldNotifyPropertyChangedForCalories(Size size) { PanDeCampo pan = new PanDeCampo(); Assert.PropertyChanged(pan, "Calories", () => { pan.Size = size; }); }
public void PanDeCampoFriesSizeChangeShouldNotifyPropertyChanged(Size size) { PanDeCampo pan = new PanDeCampo(); Assert.PropertyChanged(pan, "Size", () => { pan.Size = size; }); }
public void ChangingSizeShouldInvokePropertyChangedForSpecialInstructions() { var pan = new PanDeCampo(); Assert.PropertyChanged(pan, "SpecialInstructions", () => { pan.Size = Size.Large; }); }
public void ChangingSizeToMediumShouldInvokePropertyChangedForCalories() { var campo = new PanDeCampo(); Assert.PropertyChanged(campo, "Calories", () => { campo.Size = Size.Medium; }); }
public void ChangingSizeToLargeShouldInvokePropertyChangedForPrice() { var campo = new PanDeCampo(); Assert.PropertyChanged(campo, "Price", () => { campo.Size = Size.Large; }); }
public void ChangingSizeShouldInvokeINotifyPropertyChangedForCalories(Size size) { var panDeCampo = new PanDeCampo(); Assert.PropertyChanged(panDeCampo, "Calories", () => { panDeCampo.Size = size; }); }
public void ChangingSizeShouldInvokePropertyChangedForSize() { var pan = new PanDeCampo(); Assert.PropertyChanged(pan, "Size", () => { pan.Size = Size.Medium; }); }
public void ChangingSizeShouldInvokePropertyChangedForSize() { var side = new PanDeCampo(); Assert.PropertyChanged(side, "Size", () => { side.Size = Size.Medium; }); }