public void PostCreateAllCorrectTypeOvertime_true() { //Arrange SickController controller = new SickController(mock.Object); //Act int id = 11; string from = "01.01.2013"; string to = "10.01.2013"; string type = "SickAbsence"; string sickness = "GRZ"; bool result = controller.Create(id, from, to, type, sickness); //Assert Assert.IsTrue(result); }
public void PostCreateNotNullEmployeeBadDates_false() { //Arrange SickController controller = new SickController(mock.Object); //Act int id = 1; string from = "hhyhyhyh"; string to = "20854.254.2255"; string type = "SickAbsence"; string sickness = ""; bool result = controller.Create(id, from, to, type, sickness); //Assert Assert.IsFalse(result); }
public void PostCreateNotNullEmpCorrectDatesBadType_false() { //Arrange SickController controller = new SickController(mock.Object); //Act int id = 1; string from = "01.01.2013"; string to = "01.01.2013"; string type = "Bad Type"; string sickness = ""; bool result = controller.Create(id, from, to, type, sickness); //Assert Assert.IsFalse(result); }
public void PostCreateNullEmployee_false() { //Arrange SickController controller = new SickController(mock.Object); //Act int id = 0; string from = ""; string to = ""; string type = ""; string sickness = ""; bool result = controller.Create(id, from, to, type, sickness); //Assert Assert.IsFalse(result); }