public void Z_RemoveOpeningTest() { OpeningsService.RemoveOpening(Opening); var removedOpening = OpeningsService.GetOpeningFromId(Opening.Id); Assert.AreEqual(removedOpening.Id, -1); }
public void Y_TestAddedOpening() { var addedOpening = OpeningsService.GetOpeningFromId(Opening.Id); Assert.AreEqual(addedOpening.HourlyPay, Opening.HourlyPay); }
//[TestCase(1, 77f)] //[TestCase(2, 23f)] //[TestCase(3, 75f)] //[TestCase(4, 56f)] //[TestCase(5, 76f)] public void GetOpeningFromIdTest(int id, float result) { var opening = OpeningsService.GetOpeningFromId(id); Assert.AreEqual(opening.HourlyPay, result); }