Exemplo n.º 1
0
        public void SetUpContext()
        {
            this.OverdueOrderRepository        = Substitute.For <IQueryRepository <OverdueOrderLine> >();
            this.AccountingCompaniesRepository = Substitute.For <IRepository <AccountingCompany, string> >();
            this.ReportingHelper = new ReportingHelper();

            this.Sut = new OverdueOrdersReportService(this.OverdueOrderRepository, this.ReportingHelper, this.AccountingCompaniesRepository);
        }
Exemplo n.º 2
0
 public SmtReports(
     IRepository <WorksOrder, int> worksOrdersRepository,
     IRepository <BomDetailExplodedPhantomPartView, int> bomDetailRepository,
     IReportingHelper reportingHelper)
 {
     this.worksOrdersRepository = worksOrdersRepository;
     this.bomDetailRepository   = bomDetailRepository;
     this.reportingHelper       = reportingHelper;
 }
 public ProductionMeasuresReportService(
     IQueryRepository <FailedParts> failedPartsRepository,
     IQueryRepository <ProductionDaysRequired> productionDaysRequiredRepository,
     IReportingHelper reportingHelper)
 {
     this.failedPartsRepository            = failedPartsRepository;
     this.productionDaysRequiredRepository = productionDaysRequiredRepository;
     this.reportingHelper = reportingHelper;
 }
 public OverdueOrdersReportService(
     IQueryRepository <OverdueOrderLine> overdueOrderLineQueryRepository,
     IReportingHelper reportingHelper,
     IRepository <AccountingCompany, string> accountingCompaniesRepository)
 {
     this.overdueOrderLineQueryRepository = overdueOrderLineQueryRepository;
     this.reportingHelper = reportingHelper;
     this.accountingCompaniesRepository = accountingCompaniesRepository;
 }
Exemplo n.º 5
0
 public AllocationReportsService(
     IQueryRepository <DespatchPickingSummary> despatchPickingSummaryRepository,
     IQueryRepository <DespatchPalletQueueDetail> despatchPalletQueueRepository,
     IReportingHelper reportingHelper)
 {
     this.despatchPickingSummaryRepository = despatchPickingSummaryRepository;
     this.despatchPalletQueueRepository    = despatchPalletQueueRepository;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 6
0
 public BuildPlansReportService(
     IQueryRepository <BuildPlanDetailsReportLine> buildPlanDetailsLineRepository,
     ILinnWeekService linnWeekService,
     IReportingHelper reportingHelper)
 {
     this.buildPlanDetailsLineRepository = buildPlanDetailsLineRepository;
     this.linnWeekService = linnWeekService;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 7
0
 public SalesArticleReports(
     IRepository <SalesArticle, string> salesArticleRepository,
     IProductionTriggerLevelsService productionTriggerLevelsService,
     IReportingHelper reportingHelper)
 {
     this.salesArticleRepository         = salesArticleRepository;
     this.productionTriggerLevelsService = productionTriggerLevelsService;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 8
0
        public void SetUpContext()
        {
            this.DespatchPickingSummaryRepository    = Substitute.For <IQueryRepository <DespatchPickingSummary> >();
            this.DespatchPalletQueueDetailRepository = Substitute.For <IQueryRepository <DespatchPalletQueueDetail> >();
            this.ReportingHelper = new ReportingHelper();

            this.Sut = new AllocationReportsService(
                this.DespatchPickingSummaryRepository,
                this.DespatchPalletQueueDetailRepository,
                this.ReportingHelper);
        }
Exemplo n.º 9
0
 public TqmsReportsService(
     IReportingHelper reportingHelper,
     IQueryRepository <TqmsSummaryByCategory> tqmsSummaryByCategoryQueryRepository,
     IQueryRepository <TqmsOutstandingLoansByCategory> tqmsOutstandingLoansByCategoryRepository,
     IRepository <TqmsJobRef, string> tqmsJobRefsRepository)
 {
     this.reportingHelper = reportingHelper;
     this.tqmsSummaryByCategoryQueryRepository     = tqmsSummaryByCategoryQueryRepository;
     this.tqmsOutstandingLoansByCategoryRepository = tqmsOutstandingLoansByCategoryRepository;
     this.tqmsJobRefsRepository = tqmsJobRefsRepository;
 }
Exemplo n.º 10
0
 public AteReportsService(
     IRepository <AteTest, int> ateTestRepository,
     IReportingHelper reportingHelper,
     ILinnWeekService linnWeekService,
     IRepository <Employee, int> employeeRepository)
 {
     this.ateTestRepository  = ateTestRepository;
     this.reportingHelper    = reportingHelper;
     this.linnWeekService    = linnWeekService;
     this.employeeRepository = employeeRepository;
 }
 public ProductionBackOrdersReportService(
     IQueryRepository <ProductionBackOrdersView> productionBackOrdersViewRepository,
     IRepository <AccountingCompany, string> accountingCompaniesRepository,
     IRepository <Cit, string> citRepository,
     IReportingHelper reportingHelper)
 {
     this.productionBackOrdersViewRepository = productionBackOrdersViewRepository;
     this.accountingCompaniesRepository      = accountingCompaniesRepository;
     this.citRepository   = citRepository;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 12
0
 public WEEEReports(
     IQueryRepository <SalesAnalysis> salesAnalysisRepository,
     IReportingHelper reportingHelper,
     ISalesPartRepository salesPartRepository,
     IRepository <SalesArticle, string> salesArticleRepository)
 {
     this.salesAnalysisRepository = salesAnalysisRepository;
     this.reportingHelper         = reportingHelper;
     this.salesPartRepository     = salesPartRepository;
     this.salesArticleRepository  = salesArticleRepository;
 }
Exemplo n.º 13
0
 public AssemblyFailsReportService(
     ILinnWeekPack weekPack,
     IRepository <AssemblyFail, int> assemblyFailRepository,
     ILinnWeekService linnWeekService,
     IReportingHelper reportingHelper)
 {
     this.assemblyFailsRepository = assemblyFailRepository;
     this.linnWeekService         = linnWeekService;
     this.reportingHelper         = reportingHelper;
     this.weekPack = weekPack;
 }
Exemplo n.º 14
0
 public PartsReportService(
     IQueryRepository <PartFailLog> partFailLogRepository,
     IQueryRepository <EmployeeDepartmentView> employeeDepartmentViewRepository,
     IRepository <Part, string> partRepository,
     IReportingHelper reportingHelper,
     ILinnWeekPack linnWeekPack)
 {
     this.reportingHelper                  = reportingHelper;
     this.linnWeekPack                     = linnWeekPack;
     this.partFailLogRepository            = partFailLogRepository;
     this.employeeDepartmentViewRepository = employeeDepartmentViewRepository;
     this.partRepository                   = partRepository;
 }
Exemplo n.º 15
0
 public StoragePlaceAuditReportService(
     IReportingHelper reportingHelper,
     IRepository <Part, int> partsRepository,
     IRepository <StockLocator, int> stockLocatorRepository,
     IQueryRepository <StoragePlace> storagePlaceRepository,
     IQueryRepository <StoresBudget> storesBudgetsRepository)
 {
     this.reportingHelper         = reportingHelper;
     this.partsRepository         = partsRepository;
     this.stockLocatorRepository  = stockLocatorRepository;
     this.storagePlaceRepository  = storagePlaceRepository;
     this.storesBudgetsRepository = storesBudgetsRepository;
 }
Exemplo n.º 16
0
 public WhatWillDecrementReportService(
     IProductionTriggerLevelsService productionTriggerLevelsService,
     IWwdPack wwdPack,
     IQueryRepository <WwdWork> wwdWorkRepository,
     IQueryRepository <WwdWorkDetail> wwdWorkDetailsRepository,
     IQueryRepository <ChangeRequest> changeRequestRepository,
     IReportingHelper reportingHelper)
 {
     this.productionTriggerLevelsService = productionTriggerLevelsService;
     this.wwdPack                  = wwdPack;
     this.wwdWorkRepository        = wwdWorkRepository;
     this.wwdWorkDetailsRepository = wwdWorkDetailsRepository;
     this.changeRequestRepository  = changeRequestRepository;
     this.reportingHelper          = reportingHelper;
 }
Exemplo n.º 17
0
 public PartsReportService(
     IRepository <PartFail, int> partFailLogRepository,
     IQueryRepository <EmployeeDepartmentView> employeeDepartmentViewRepository,
     IReportingHelper reportingHelper,
     ILinnWeekPack linnWeekPack,
     IRepository <Supplier, int> supplierRepository,
     IRepository <PurchaseOrder, int> purchaseOrderRepository)
 {
     this.partFailLogRepository            = partFailLogRepository;
     this.reportingHelper                  = reportingHelper;
     this.linnWeekPack                     = linnWeekPack;
     this.supplierRepository               = supplierRepository;
     this.purchaseOrderRepository          = purchaseOrderRepository;
     this.employeeDepartmentViewRepository = employeeDepartmentViewRepository;
 }
Exemplo n.º 18
0
 public void SetUpContext()
 {
     this.ProductionTriggerLevelsService = Substitute.For <IProductionTriggerLevelsService>();
     this.WwdPack                  = Substitute.For <IWwdPack>();
     this.WwdWorkRepository        = Substitute.For <IQueryRepository <WwdWork> >();
     this.WwdWorkDetailsRepository = Substitute.For <IQueryRepository <WwdWorkDetail> >();
     this.ChangeRequestRepository  = Substitute.For <IQueryRepository <ChangeRequest> >();
     this.ReportingHelper          = new ReportingHelper();
     this.Sut = new WhatWillDecrementReportService(
         this.ProductionTriggerLevelsService,
         this.WwdPack,
         this.WwdWorkRepository,
         this.WwdWorkDetailsRepository,
         this.ChangeRequestRepository,
         this.ReportingHelper);
 }
Exemplo n.º 19
0
        public ValuesByWeekLayout(
            IReportingHelper reportingHelper,
            string reportTitle,
            IEnumerable <string> rowIds = null,
            bool zeroPad = true)
        {
            this.reportingHelper = reportingHelper;
            this.zeroPad         = zeroPad;
            this.rowIds          = rowIds;
            this.ReportTitle     = reportTitle;
            this.weeksComponent  = this.AddComponent <AxisDetailsModel>(
                "Weeks",
                "Weeks displayed and total column",
                false,
                DataComponentType.Column);

            this.dataComponent = this.AddComponent <CalculationValueModel>(
                "Data",
                "Quantities by week",
                false,
                DataComponentType.Grid);
        }
Exemplo n.º 20
0
 public WhoBuiltWhatReport(IRepository <WhoBuiltWhat, string> repository, IReportingHelper helper)
 {
     this.repository = repository;
     this.helper     = helper;
 }
Exemplo n.º 21
0
 public ImportBookReportService(IRepository <ImportBook, int> impbookRepository, IReportingHelper reportingHelper)
 {
     this.impbookRepository = impbookRepository;
     this.reportingHelper   = reportingHelper;
 }
Exemplo n.º 22
0
 public void SetUpContext()
 {
     this.WhoBuiltWhatRepository = Substitute.For <IRepository <WhoBuiltWhat, string> >();
     this.ReportingHelper        = new ReportingHelper();
     this.Sut = new WhoBuiltWhatReport(this.WhoBuiltWhatRepository, this.ReportingHelper);
 }
Exemplo n.º 23
0
        public void SetUpContext()
        {
            this.ProductionBackOrdersViewRepository = Substitute.For <IQueryRepository <ProductionBackOrdersView> >();
            this.AccountingCompaniesRepository      = Substitute.For <IRepository <AccountingCompany, string> >();
            this.CitsRepository  = Substitute.For <IRepository <Cit, string> >();
            this.ReportingHelper = new ReportingHelper();

            this.AccountingCompaniesRepository.FindById("LINN")
            .Returns(new AccountingCompany {
                LatestSosJobId = 1234, Name = "LINN"
            });

            this.CitsRepository.FindById("S")
            .Returns(new Cit {
                Name = "Production", SortOrder = 10
            });
            this.CitsRepository.FindById("T")
            .Returns(new Cit {
                Name = "Turning", SortOrder = 20
            });

            this.ProductionBackOrdersViewRepository
            .FilterBy(Arg.Any <Expression <Func <ProductionBackOrdersView, bool> > >()).Returns(
                new List <ProductionBackOrdersView>
            {
                new ProductionBackOrdersView
                {
                    ArticleNumber      = "A",
                    OrderQuantity      = 3,
                    OrderValue         = 400.34m,
                    InvoiceDescription = "A Desc",
                    CanBuildQuantity   = 3,
                    CanBuildValue      = 400.34m,
                    OldestDate         = 1.July(2020),
                    JobId   = 1234,
                    CitCode = "S"
                },
                new ProductionBackOrdersView
                {
                    ArticleNumber      = "B",
                    OrderQuantity      = 4,
                    OrderValue         = 2252.92m,
                    InvoiceDescription = "B Desc",
                    CanBuildQuantity   = 2,
                    CanBuildValue      = 1126.46m,
                    OldestDate         = 1.December(2020),
                    JobId   = 1234,
                    CitCode = "S"
                },
                new ProductionBackOrdersView
                {
                    ArticleNumber      = "C",
                    OrderQuantity      = 1,
                    OrderValue         = 100m,
                    InvoiceDescription = "C Desc",
                    CanBuildQuantity   = 1,
                    CanBuildValue      = 100m,
                    OldestDate         = 1.August(2020),
                    JobId   = 1234,
                    CitCode = "T"
                }
            }.AsQueryable());

            this.Sut = new ProductionBackOrdersReportService(
                this.ProductionBackOrdersViewRepository,
                this.AccountingCompaniesRepository,
                this.CitsRepository,
                this.ReportingHelper);
        }
Exemplo n.º 24
0
 public BuildsSummaryReportService(
     IBuildsSummaryReportDatabaseService databaseService, IReportingHelper reportingHelper)
 {
     this.databaseService = databaseService;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 25
0
 public void SetUpContext()
 {
     this.BoardTestRepository = Substitute.For <IRepository <BoardTest, BoardTestKey> >();
     this.ReportingHelper     = new ReportingHelper();
     this.Sut = new BoardTestReports(this.BoardTestRepository, this.ReportingHelper);
 }
 public ManufacturingCommitDateReport(IQueryRepository <MCDLine> mcdRepository, IReportingHelper reportingHelper)
 {
     this.mcdRepository   = mcdRepository;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 27
0
 public BoardTestReports(IRepository <BoardTest, BoardTestKey> repository, IReportingHelper reportingHelper)
 {
     this.repository      = repository;
     this.reportingHelper = reportingHelper;
 }
Exemplo n.º 28
0
 public void SetUpContext()
 {
     this.MCDLinesRepository = Substitute.For <IQueryRepository <MCDLine> >();
     this.ReportingHelper    = new ReportingHelper();
     this.Sut = new ManufacturingCommitDateReport(this.MCDLinesRepository, this.ReportingHelper);
 }