public void AddIngredientWorks() { var positionList = new PositionListDataHolder(new PositionRepositoryStub()); positionList.LoadPositionList(); var ingredient = new DTOIngredient(5, 1, new DTOSize(1, "size1", new Money(1), new DTOPosition(1, "1", "1")), new DTO.Consumable(1, "water", 1)); positionList.AddIngredient(ingredient); var ingredientList = positionList.GetIngredientList(ingredient.Size); Assert.AreEqual(ingredient, ingredientList[1]); }