public void ColumnsPersistenceCountTest() { blueprint1.InsertColumn(new Point(2, 3)); blueprint1.InsertColumn(new Point(1, 2)); portfolio.Add(blueprint1); IBlueprint retrieved = portfolio.Get(blueprint1.GetId()); int expectedResult = 2; int actualResult = retrieved.GetColumns().Count; Assert.AreEqual(expectedResult, actualResult); }
private void SetBlueprint() { toReport.InsertWall(new Point(0, 0), new Point(5, 0)); toReport.InsertWall(new Point(0, 0), new Point(0, 5)); toReport.InsertColumn(new Point(1, 1)); toReport.InsertColumn(new Point(1, 2)); Template temp = new Template("Slider", 2, 1, 1.9F, ComponentType.WINDOW); Opening window1 = new Window(new Point(0, 2), temp); Opening window2 = new Window(new Point(2, 0), temp); toReport.InsertOpening(window1); toReport.InsertOpening(window2); }
public void InsertColumn(Point columnPosition) { CheckPermission(Permission.EDIT_BLUEPRINT); blueprint.InsertColumn(columnPosition); repository.Modify(blueprint); HasBeenModify = true; }