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); }