public void RemoveColumn(Point columnPoint) { CheckPermission(Permission.EDIT_BLUEPRINT); blueprint.RemoveColumn(columnPoint); repository.Modify(blueprint); HasBeenModify = true; }
public void ModifyDeletionTest() { BuildTestBlueprint(); portfolio.Add(blueprint1); blueprint1.RemoveColumn(new Point(2, 3)); portfolio.Modify(blueprint1); blueprint1 = portfolio.Get(blueprint1.GetId()); int expectedResult = 0; int actualResult = blueprint1.GetColumns().Count; Assert.AreEqual(expectedResult, actualResult); }