public void InitTest()
        {
            _objects = new List <RcuFunctionalObject>()
            {
                _rcuFunctionalObject1,
                _rcuFunctionalObject1,
                _rcuFunctionalObject1,
                _rcuFunctionalObject1,
                _rcuFunctionalObject2,
                _rcuFunctionalObject3,
                _rcuFunctionalObject4,
                _rcuFunctionalObject4
            };

            _technologyTypes = new List <Definition.TechnologyType>()
            {
                Definition.TechnologyType.SCS,
                Definition.TechnologyType.Mecanical
            };

            _roomControllerUnit = new RoomControllerUnit(_objects, _technologyTypes);
            _rcuController      = new RcuController(_roomControllerUnit);

            _proxyDictionnary = new Dictionary <KeyObject, RcuFunctionalObject>()
            {
                [_keyObject1] = _rcuFunctionalObject1,
                [_keyObject2] = _rcuFunctionalObject2,
                [_keyObject3] = _rcuFunctionalObject3,
                [_keyObject4] = _rcuFunctionalObject4,
            };
        }
Beispiel #2
0
        public void InitTest()
        {
            _objects = new List <RcuFunctionalObject>()
            {
                _rcuFunctionalObject1,
                _rcuFunctionalObject1,
                _rcuFunctionalObject1,
                _rcuFunctionalObject1,
                _rcuFunctionalObject2,
                _rcuFunctionalObject3,
                _rcuFunctionalObject4,
                _rcuFunctionalObject4
            };

            _technologyTypes = new List <Definition.TechnologyType>()
            {
                Definition.TechnologyType.SCS,
                Definition.TechnologyType.KNX
            };

            _roomControllerUnit = new RoomControllerUnit(_objects, _technologyTypes);
            _rcuController      = new RcuController(_roomControllerUnit);
        }
        public void Not_retrieve_TechnologyType_present_in_list()
        {
            var rcu = new RoomControllerUnit(_objects, _technologyTypes);

            Check.That(rcu.IsTechnologyValid(Definition.TechnologyType.KNX)).IsFalse();
        }
        public void Create_instance_of_correct_type()
        {
            var rcu = new RoomControllerUnit(_objects, _technologyTypes);

            Check.That(rcu).IsInstanceOf <RoomControllerUnit>();
        }