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; }
public void Init() { ag1 = new VentilationAggregate(orderNumber: "1234"); ag2 = new VentilationAggregate(orderNumber: "555"); f1 = new Filter("manufacturer1", "model2", "filterClass3", "type4", 10); f2 = new Filter("manu1", "filtClass2", "mod3", "typ4", 5); f3 = new Filter("f3", "f3", "f3", "f3", 3); ct = new MainViewModel(); b1 = new Building(); cust = new Customer(); filters = new List <Filter>(); }
public void Init() { ag1 = new VentilationAggregate(orderNumber: "1234"); ag2 = new VentilationAggregate(orderNumber: "5678"); f1 = new Filter("manufacturer1", "filterClass2", "model3", "type4", 10); f2 = new Filter("manu1", "filtClass2", "mod3", "typ4", 5); c1 = new Customer(name: "Jens"); b1 = new Building("Scandic"); b2 = new Building("Arla"); buildingList = new List <Building>(); filters = new List <Filter>(); ventilationAggregates = new List <VentilationAggregate>(); agRepo = new VentilationAggregateRepository(); agRepo.AddVentilationAggregate("4567"); customerRepo = new CustomerRepository(); }