public void NewSizeInitializesExistedIngredients() { var positionList = new PositionListDataHolder(new PositionRepositoryStub()); positionList.LoadPositionList(); var size = new DTOSize(5, "size5", new Money(1), new DTOPosition(1, "1", "1")); positionList.AddSize(size); var sizeList = positionList.GetSizeList(size.Position); Assert.AreEqual("water", sizeList[2].Ingredients[0].Consumable.Name); }
public void AddSizeWorks() { var positionList = new PositionListDataHolder(new PositionRepositoryStub()); positionList.LoadPositionList(); var size = new DTOSize(5, "size5", new Money(1), new DTOPosition(1, "1", "1")); positionList.AddSize(size); var sizeList = positionList.GetSizeList(size.Position); Assert.AreEqual(size, sizeList[2]); }