public void testGetMarinaCapacity() { //arrange int expected = 51; //act' MarinaMaintenanceObj MarinaMaintenance_Obj = new MarinaMaintenanceObj(); Marina Marina = new Marina(); Marina._LoadDataFromFile(); Assert.AreEqual(expected, Marina.getCurrentCapacityMarinaLength()); }
public void deleteBooking() { //arrange int indexOfBoat = 1; int expectedRowCount = 2; //act MarinaMaintenanceObj MarinaMaintenance_Obj = new MarinaMaintenanceObj(); Marina Marina = new Marina(); FileOperations FP = new FileOperations(); Marina._LoadDataFromFile(); Marina.DeleteBoat(indexOfBoat); int actual = FP.readDataFromFile().Count; //assert Assert.AreEqual(expectedRowCount, actual); }