public void CreateTillamookEggsSucceeds() { IGroceryItemFactory abstractFactory = GroceryFactoryService.CreateGroceryItemFactory(GroceryProductFamily.Tillamook); IEggs eggs = abstractFactory.ConstructEggs(); Assert.IsTrue(eggs.Brand == "Tillamook"); Assert.IsTrue(eggs.Description == "Eggs"); }
public void CreateTillamookMilkSucceeds() { IGroceryItemFactory abstractFactory = GroceryFactoryService.CreateGroceryItemFactory(GroceryProductFamily.Tillamook); IMilk milk = abstractFactory.ConstructMilk(); Assert.IsTrue(milk.Brand == "Tillamook"); Assert.IsTrue(milk.Description == "Milk"); }
public void CreateTillamookButterSucceeds() { IGroceryItemFactory abstractFactory = GroceryFactoryService.CreateGroceryItemFactory(GroceryProductFamily.Tillamook); IButter butter = abstractFactory.ConstructButter(); Assert.IsTrue(butter.Brand == "Tillamook"); Assert.IsTrue(butter.Description == "Butter"); }