public void GetLandlordData() { string expected = "contactPerson"; string actual; CtrLandlord ctrLandlordObj = new CtrLandlord(); MdlLandlord mdlLandlordObj = ctrLandlordObj.GetLandlordData("*****@*****.**"); actual = mdlLandlordObj.ContactPerson.Trim(); Assert.AreEqual(expected, actual); }
public void GetNonExistingLandlordData() { CtrLandlord ctrLandlordObj = new CtrLandlord(); MdlLandlord mdlLandlordObj = ctrLandlordObj.GetLandlordData("*****@*****.**"); Assert.IsNull(mdlLandlordObj.ContactPerson); }
public MdlLandlord GetLandlordData(string email) { ctrLandlordObj = new CtrLandlord(); Console.WriteLine(); Console.WriteLine("GetLandlordData() " + GetExecutionThreadTime()); return ctrLandlordObj.GetLandlordData(email); }