public void DeleteIngredientInvokesDataHolderDeleteIngredientMethod() { var stub = new PositionListDataHolderStub(); IIngredientList ingredientList = new IngredientListFeedback(stub); bool invoked = false; EventHandler <IngredientListChangedEventArgs> handler = (sender, e) => invoked = true; stub.IngredientListChanged += handler; var dtoPosition = new DTO.Position(1, "1", "1"); ingredientList.DeleteIngredient(new DTOIngredient(1, 1, new DTO.Size(1, "1", new Money(1), dtoPosition), new DTO.Consumable(1, "water", 1))); Assert.IsTrue(invoked); }
public List <DTO.Size> GetSizeList(DTO.Position position) { throw new NotImplementedException(); }
public void UpdatePosition(DTO.Position position) { throw new NotImplementedException(); }
public List <DTOSize> GetSizeList(DTO.Position position) { return(new List <DTOSize>()); }