public void TestBlueSky_AddPayDay() { // set-up IPayDay payDay = CreatePayDay(); // pre-conditions Assert.IsNull(PayDayService.GetPayDay(payDay.RecordId)); // exercise PayDayService.AddPayDay(payDay); IPayDay persistedPayDay = PayDayService.GetPayDay(payDay.RecordId); // post-conditions Assert.AreEqual(persistedPayDay, payDay); }
public void TestBlueSky_AddPayDay() { //set-up Model = CreatePayDayModel(); IPayDay payDayShouldNotBeInDb = Service.GetPayDay(Model.RecordId); //Pre-condition Assert.IsNull(payDayShouldNotBeInDb); //exercise Presenter.SavePayDay(Model); IPayDay payDayShouldBeInDb = Service.GetPayDay(1); //post-condition Assert.IsNotNull(payDayShouldBeInDb); }