예제 #1
0
        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);
        }
예제 #2
0
        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);
        }