示例#1
0
        public void SynchroniseExistedRow()
        {
            var facade = new PositionListFacade(new PositionListStub(), new SizeListStub(),
                                                new IngredientListStub());
            var controller = new DataGridControllerStub(facade);
            var consumable = new Consumable(1, "1", 1);
            var row        = new IngredientDataGridRow()
            {
                Consumable = consumable.Name
            };

            controller.Position = facade.LoadPositionList()[0];
            controller.SynchroniseTest(row, consumable);
            Assert.AreEqual(1.0, row.Columns["size1"]);
            Assert.AreEqual(1.0, row.Columns["size2"]);
        }
示例#2
0
 public void SynchroniseTest(IngredientDataGridRow row, Consumable consumable)
 {
     SynchroniseAmounts(row, consumable);
 }