public string AddLandlord(MdlLandlord mdlLandlordObj) { ctrLandlordObj = new CtrLandlord(); Console.WriteLine(); Console.WriteLine("AddLandlord() " + GetExecutionThreadTime()); return ctrLandlordObj.AddLandlord(mdlLandlordObj); }
public void AddNewLandlord() { CtrLandlord ctrLandlordObj = new CtrLandlord(); MdlLandlord mdlLandlordObj = GenerateLandlordObj(); string expected = "Registration successful."; string actual; actual = ctrLandlordObj.AddLandlord(mdlLandlordObj).Trim(); Assert.AreEqual(expected, actual); }
public void AddExistingLandlord() { CtrLandlord ctrLandlordObj = new CtrLandlord(); MdlLandlord mdlLandlordObj = GenerateLandlordObj(); mdlLandlordObj.Email = "*****@*****.**"; string expected = "Registration has failed due to the existing Email."; string actual; actual = ctrLandlordObj.AddLandlord(mdlLandlordObj).Trim(); Assert.AreEqual(expected, actual); }
public void CheckEmailTest() { CtrLandlord ctrLandlord = new CtrLandlord(); //should return true Assert.IsTrue(ctrLandlord.AddLandlord("*****@*****.**", "pass", true, DateTime.Now, "Miro", "Pakanec", "xxx", "f**k", "aalborg", "Denmark", "4546456465")); }