Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 1abc5233 authored by Franz KOBER josef's avatar Franz KOBER josef
Browse files

added vifFactory

parent 453c2b29
No related branches found
No related tags found
No related merge requests found
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TUGraz.VectoCommon.Exceptions; using TUGraz.VectoCommon.Exceptions;
using TUGraz.VectoCommon.InputData; using TUGraz.VectoCommon.InputData;
using TUGraz.VectoCommon.Models; using TUGraz.VectoCommon.Models;
...@@ -12,10 +8,12 @@ using TUGraz.VectoCore.OutputData.XML.DeclarationReports.CustomerInformationFile ...@@ -12,10 +8,12 @@ using TUGraz.VectoCore.OutputData.XML.DeclarationReports.CustomerInformationFile
using TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter; using TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport.ManufacturerReport_0_9.ManufacturerReportXMLTypeWriter;
using TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationFile.VehicleInformationFile_0_1; using TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationFile.VehicleInformationFile_0_1;
namespace TUGraz.VectoMockup.Reports namespace TUGraz.VectoMockup.Reports
{ {
class MockupReportFactory : IXMLDeclarationReportFactory, IMockupDeclarationReportFactory class MockupReportFactory : IXMLDeclarationReportFactory, IMockupDeclarationReportFactory
{ {
private readonly IManufacturerReportFactory _mrfFactory; private readonly IManufacturerReportFactory _mrfFactory;
private readonly ICustomerInformationFileFactory _cifFactory; private readonly ICustomerInformationFileFactory _cifFactory;
private readonly IVIFReportFactory _vifFactory; private readonly IVIFReportFactory _vifFactory;
...@@ -24,13 +22,17 @@ namespace TUGraz.VectoMockup.Reports ...@@ -24,13 +22,17 @@ namespace TUGraz.VectoMockup.Reports
#region Implementation of IXMLDeclarationReportFactory #region Implementation of IXMLDeclarationReportFactory
public MockupReportFactory(IManufacturerReportFactory mrfFactory, ICustomerInformationFileFactory cifFactory) public MockupReportFactory(IManufacturerReportFactory mrfFactory, ICustomerInformationFileFactory cifFactory, IVIFReportFactory vifFactory)
{ {
_mrfFactory = mrfFactory; _mrfFactory = mrfFactory;
_cifFactory = cifFactory; _cifFactory = cifFactory;
} _vifFactory = vifFactory;
}
public IDeclarationReport CreateReport(IInputDataProvider input, IOutputDataWriter outputWriter) public IDeclarationReport CreateReport(IInputDataProvider input, IOutputDataWriter outputWriter)
{ {
switch (input) switch (input)
{ {
case IMultistageBusInputDataProvider multistageBusInputDataProvider: case IMultistageBusInputDataProvider multistageBusInputDataProvider:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment