Ejemplo n.º 1
0
        public void FilterCanBeRetrievedFromAggregate()
        {
            ag1.AddFilter(f1);
            filters = ag1.GetListOfFilters();
            Assert.AreEqual("type4", filters[0].Type);

            ag1.AddFilter(f2);
            filters = ag1.GetListOfFilters();
            Assert.AreEqual("filtClass2", filters[1].Filterclass);
        }
Ejemplo n.º 2
0
        public VMVentilationAggregate(VentilationAggregate ventilationAggregate)
        {
            this._ventilationAggregate = ventilationAggregate;

            _floorsVM = new List <VMFloor>();
            foreach (Floor floor in ventilationAggregate.GetListOfFloors())
            {
                _floorsVM.Add(new VMFloor(floor));
            }

            _filtersVM = new List <VMFilter>();
            foreach (Filter filter in ventilationAggregate.GetListOfFilters())
            {
                _filtersVM.Add(new VMFilter(filter));
            }

            _serviceReports = new List <VMServiceReport>();
            foreach (ServiceReport serviceReport in ventilationAggregate.GetListOfServiceReports())
            {
                _serviceReports.Add(new VMServiceReport(serviceReport));
            }

            OrderNumber = ventilationAggregate.OrderNumber;
            FileName    = ventilationAggregate.FileName;
        }