protected void CreatePayDayData() { IPayDayService service = MockPayDayService.Singleton; IPayDay payDay = new PayDay(); payDay.Date = new DateTime(2017, 05, 05); payDay.Amount = 1000.21m; service.AddPayDay(payDay); }
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); }