public void GetById() { SLTempsController slTemps = new SLTempsController(); SLTemp sl = slTemps.GetById(0); Assert.AreEqual("Mikail", sl.FirstName); }
public void GetByIdNull() { SLTempsController slTemps = new SLTempsController(); SLTemp sl = slTemps.GetById(10); Assert.IsNull(sl); }
public void AmountOfObj() { SLTempsController slTemps = new SLTempsController(); List <SLTemp> slTempsList = slTemps.GetList(); Assert.AreEqual(2, slTempsList.Count); }
public void TestDelete() { SLTempsController slTemps = new SLTempsController(); List <SLTemp> slTempsList = slTemps.GetList(); int preCount = slTempsList.Count; bool c1 = slTemps.DeleteSLTemp(1); List <SLTemp> slTempsList2 = slTemps.GetList(); Assert.AreEqual(preCount - 1, slTempsList2.Count); }