Exemplo n.º 1
0
        public void deskByFloorSuccess()
        {
            bool        validDesk = true;
            List <Desk> deskList  = _deskController.GetDesksByFloor(5);

            foreach (Desk desk in deskList)
            {
                validDesk = _validator.ValidateDeskNumber(desk.DeskNumber);
                validDesk = desk.Location.Floor == 5;
            }

            Assert.IsTrue(validDesk);
        }
Exemplo n.º 2
0
        public void DeskInsertedSuccessfully()
        {
            bool validation = _validator.ValidateDeskNumber(_deskNum);

            Assert.IsTrue(validation);
        }
 public void TestValidateDeskNumber()
 {
     Assert.IsTrue(_validator.ValidateDeskNumber("5-1"));
 }