public void UpdateFlatsAttributesWithNullValues() { CtrFlat ctrFlatObj = new CtrFlat(); MdlFlat mdlFlatObj = GenerateFlatObj(); mdlFlatObj.Id = GetFlatId(mdlFlatObj); mdlFlatObj.Rent = 0; mdlFlatObj.Deposit = 0; mdlFlatObj.Description = ""; bool actual = ctrFlatObj.UpdateFlat(mdlFlatObj.Id, mdlFlatObj.Rent, mdlFlatObj.Deposit, mdlFlatObj.Description); bool expected = true; Assert.AreEqual(expected, actual); }
public bool UpdateFlat(int flatId, double rent, double deposit, string description) { ctrFlatObj = new CtrFlat(); Console.WriteLine(); Console.WriteLine("UpdateFlat() " + GetExecutionThreadTime()); return ctrFlatObj.UpdateFlat(flatId, rent, deposit, description); }