public void TestUpdateFarrowed2() { Sow sow = new Sow() { SowNo = "1324", KnickName = "Jim", Status = "FARROWED", FarrowedDate = DateTime.Now.AddDays(-29) }; sow.Update(); Assert.AreEqual("READY_TO_BREED", sow.Status); }
public void TestUpdateBred3() { Sow sow = new Sow() { SowNo = "1324", KnickName = "Jim", Status = "BRED", BredDate = DateTime.Now.AddDays(-113) }; sow.Update(); Assert.AreEqual("DUE", sow.Status); }
public void TestUpdateUltrasoundComplete2() { Sow sow = new Sow() { SowNo = "1324", KnickName = "Jim", Status = "ULTRASOUND_COMPLETE", BredDate = DateTime.Now.AddDays(-113) }; sow.Update(); Assert.AreEqual("DUE", sow.Status); }
public void TestUpdateBred2() { Sow sow = new Sow() { SowNo = "1324", KnickName = "Jim", Status = "BRED", BredDate = DateTime.Now.AddDays(-27) }; sow.Update(); Assert.AreEqual("PENDING_ULTRASOUND", sow.Status); }