Exemplo n.º 1
0
        public UnitOfWork(
            IDbConnection connection,
            ITeamRepository teams,
            IProjectRepository projects,
            IDueDateRepository duedates,
            ITaxPayerTypeRepository taxPayerTypes,
            IDeliverableTypeRepository deliverableTypes,
            IJurisdictionRepository jurisdictions,
            IFormRepository forms,
            ITaxYearRepository taxYears,
            IQuarterRepository quarters,
            IQuarterDueDateRepository quarterDueDates,
            ISqlGenerator sqlGeneratorBase,
            IDataComparer datacomparer)
        {
            _connection = connection;

            Teams            = teams;
            DueDates         = duedates;
            Projects         = projects;
            TaxPayerTypes    = taxPayerTypes;
            DeliverableTypes = deliverableTypes;
            Jurisdictions    = jurisdictions;
            Forms            = forms;
            TaxYears         = taxYears;
            Quarters         = quarters;
            QuarterDueDates  = quarterDueDates;

            Teams.ActionCreated            += ActionCreated;
            DueDates.ActionCreated         += ActionCreated;
            Projects.ActionCreated         += ActionCreated;
            TaxPayerTypes.ActionCreated    += ActionCreated;
            DeliverableTypes.ActionCreated += ActionCreated;
            Jurisdictions.ActionCreated    += ActionCreated;
            Forms.ActionCreated            += ActionCreated;
            TaxYears.ActionCreated         += ActionCreated;
            Quarters.ActionCreated         += ActionCreated;
            QuarterDueDates.ActionCreated  += ActionCreated;

            _sqlGeneratorBase = sqlGeneratorBase;
            _dataComparer     = datacomparer;
            ActionsQueue      = new Queue <EntityAction>();
        }
Exemplo n.º 2
0
 public DropDownListServiceMock(IDropDownListRepository idropDownListRepository = null,
                                IUserRepository iuserRepository = null,
                                IChannelTalentRepository ichannelTalentRepository         = null,
                                ITitleSeasonSeriesRepository ititleSeasonSeriesRepository = null,
                                IChannelDeliverableTypeDeliverableGroupRepository ichannelDeliverableTypeDeliverableGroupRepository = null,
                                IAssetGroupChannelHouseAdvertiserRepository iassetGroupChannelHouseAdvertiserRepository             = null,
                                IDeliverable_TalentRepository italentDeliverableRepository = null,
                                IDeliverableType_DeliverableSubTypeRepository iDeliverableType_DeliverableSubTypeRepository = null,
                                IDeliverableTypeRepository iDeliverableTypeRepository = null,
                                IChannel_DeliverableGroup_VendorRepository ichannel_DeliverableGroup_VendorRepository = null,
                                IActivityTypeActivityStatusRepository iactivityTypeActivityStatusRepository           = null,
                                ITargetRepository targetRepository         = null,
                                ITypeOfWorkRepository typeOfWorkRepository = null,
                                IDeliverableDateTypeRepository deliverableDateTypeRepository = null,
                                ITalentRepository talentRepository = null,
                                IMusicSubLibraryRepository musicSubLibraryRepository         = null,
                                IMusicLibraryRepository musicLibraryRepository               = null,
                                IMediaOutletRepository mediaOutletRepository                 = null,
                                IMediaOutletCategoryRepository mediaOutletCategoryRepository = null,
                                IGLAccountMediaOutletCategoryRepository gLAccountMediaOutletCategoryRepository = null,
                                IWBSFiscalYear_ChannelRepository wBSFiscalYear_ChannelRepository = null,
                                IInvoiceStatusRepository invoiceStatusRepository             = null,
                                IChannelCostCenterRepository channelCostCenterRepository     = null,
                                IChannelProfitCenterRepository channelProfitCenterRepository = null,
                                IVendorRepository vendorRepository = null,
                                IWorkOrderType_Channel_WorkOrderVendorRepository workOrderType_Channel_WorkOrderVendorRepository = null,
                                IWorkOrderVendorRepository workOrderVendorRepository = null,
                                IDeliverableGroup_DeliverableStatusRepository deliverableGroup_DeliverableStatusRepository = null,
                                IMasterVendorViewRepository masterVendorViewRepository = null,
                                IDeliverableGroup_DeliverableDateTypeRepository deliverableGroup_DeliverableDateTypeRepository = null,
                                IBudgetStatusRepository budgetStatusRepository = null,
                                IDeliverableCategoryRepository deliverableCategoryRepository = null,
                                IBusinessAreaRepository businessAreaRepository = null,
                                IChannelDeliverableGroupRepository ChannelDeliverableGroupRepository = null,
                                IChannel_DeliverableGroup_VendorRepository channelDeliverableGroupVendorRepository = null,
                                IProductionMethodTypeRepository ProductionMethodTypeRepository = null,
                                IWBSElementRepository wbsElementRepository         = null,
                                IChargeCodeTypeRepository chargeCodeTypeRepository = null
                                )
     : base(idropDownListRepository, iuserRepository,
            ichannelTalentRepository, ititleSeasonSeriesRepository,
            ichannelDeliverableTypeDeliverableGroupRepository,
            iassetGroupChannelHouseAdvertiserRepository,
            italentDeliverableRepository,
            iDeliverableType_DeliverableSubTypeRepository,
            iDeliverableTypeRepository,
            ichannel_DeliverableGroup_VendorRepository,
            iactivityTypeActivityStatusRepository,
            targetRepository,
            typeOfWorkRepository, deliverableDateTypeRepository,
            talentRepository,
            musicSubLibraryRepository,
            musicLibraryRepository,
            mediaOutletRepository,
            mediaOutletCategoryRepository,
            gLAccountMediaOutletCategoryRepository,
            wBSFiscalYear_ChannelRepository,
            invoiceStatusRepository,
            channelCostCenterRepository,
            channelProfitCenterRepository,
            vendorRepository,
            workOrderType_Channel_WorkOrderVendorRepository,
            workOrderVendorRepository,
            deliverableGroup_DeliverableStatusRepository,
            masterVendorViewRepository,
            deliverableGroup_DeliverableDateTypeRepository,
            budgetStatusRepository,
            deliverableCategoryRepository,
            businessAreaRepository,
            ChannelDeliverableGroupRepository,
            channelDeliverableGroupVendorRepository,
            ProductionMethodTypeRepository,
            wbsElementRepository,
            chargeCodeTypeRepository)
 {
 }
Exemplo n.º 3
0
        public DeliverableServiceMock(IUnitOfWork unitOfWork = null, IDeliverableRepository deliverableRepository = null,
                                      IDeliverableStatusRepository deliverableStatusRepository = null, IDepartmentRepository departmentRepository = null,
                                      IChannelRepository channelRepository = null, ITypeOfWorkRepository typeOfWorkRepository = null,
                                      ITypeOfWorkCategoryRepository typeOfWorkTypeRepository = null, IDeliverableCategoryRepository deliverableCategoryRepository = null,
                                      IDeliverableTypeRepository deliverableTypeRepository   = null, IDeliverableSubTypeRepository deliverableSubTypeRepository   = null,
                                      ITargetRepository targetRepository         = null, IActivityTypeRepository activityTypeRepository = null,
                                      IBudgetTypeRepository budgetTypeRepository = null, IWBSElementRepository budgetTypeTOWRepository  = null,
                                      IFamilyProductIssueTowDeliverableRepository familyProductIssueTowDeliverableRepository = null, IVendorRepository vendorRepository = null,
                                      IProductionMethodTypeRepository productionMethodTypeRepository = null, IUserRepository userRepository       = null,
                                      IGLAccountRepository glAccountRepository         = null, IActivityStatusRepository activityStatusRepository = null, IMediaOutletCategoryRepository mediaOutletCategoryRepository = null,
                                      IMediaOutletRepository mediaOutletRepository     = null,
                                      IPrintCategoryRepository printCategoryRepository = null, ICalendarRepository calendarRepository = null,
                                      ILogService logService = null, IDeliverableTypeCompanyVendorRepository deliverableTypeCompanyVendorRepository = null, IOffAirDesignRepository printRepository = null,
                                      IMediaBuyCommittedRepository mediaBuyCommittedRepository = null,
                                      IInternalRepository iInternalRepository = null,
                                      IActivityStatusCategoryRepository iActivityStatusCategoryRepository = null, IChannelCostCenterRepository channelCostCenterRepository = null,
                                      //Contract Request - EDMX fix
                                      //IContractRequestHeaderRepository contractRequestHeaderRepository = null, IContractRequestLineRepository contractRequestLineRepository = null,
                                      ITrackActivityElementRepository trackActivityElementRepository = null, IAssetGroupRepository assetGroupRepository = null,
                                      IAssetGroupChannelHouseAdvertiserRepository assetGroupChannelHouseAdvertiserRepository = null,
                                      IUserChannelRepository userChannelRepository              = null,
                                      IChannelTalentRepository channelTalentRepository          = null,
                                      IDeliverable_TalentRepository talentDeliverableRepository = null, ITalentRepository talentRepository = null,
                                      IUserTitleRepository userTitleRepository = null, IDeliverableUserTitleMrmUserRepository deliverableUserTitleMrmUserRepository = null,
                                      IDeliverableProductionMethodTypeRepository deliverableProductionMethodTypeRepository         = null, IDeliverableDateTypeRepository deliverableDateTypeRepository = null,
                                      IDeliverableGroupDeliverableDateTypeRepository deliverableGroupDeliverableDateTypeRepository = null,
                                      IDeliverableDateRepository deliverableDeliverableDateTypeRepository = null, IDeliverableGroupRepository deliverableGroupRepository = null,
                                      IScriptRepository scriptRepository = null, IMusicRepository musicRepository = null, IMusicSubLibraryRepository _musicSubLibraryRepository = null,
                                      IMusicLibraryRepository _musicLibraryRepository            = null, IRecordingTypeRepository recordingTypeRepository = null, IMusicUsageTypeRepository musicUsageTypeRepository = null,
                                      IWBS_DeliverablesRepository wbsDeliverablesRepository      = null,
                                      IGraphicElementRepository graphicElementRepository         = null, IGraphicImageRepository graphicImageRepository = null,
                                      IGraphicElementTypeRepository graphicElementTypeRepository = null, IGraphicElementTypeGraphicPackageChannelRepository graphicElementTypeGraphicPackageChannelRepository = null,
                                      IGraphicHeaderRepository graphicHeaderRepository           = null,
                                      ITrackTypeRepository trackTypeRepository         = null, IWorkOrderVendorRepository workOrderVendorRepository = null,
                                      IWorkOrderTypeRepository workOrderTypeRepository = null,

                                      IDeliverableDateRepository deliverableDeliverableGroupDeliverableDateTypeRepository = null,
                                      IDeliverableDateTypeRepository iDeliverableDateTypeRepository = null,
                                      IMediaTypeRepository mediaTypeRepository = null, IApprovalRepository approvalRepository = null,
                                      IApprovalTypeChannelBudgetTypeMRMUserUserTitleRepository approvalTypeChannelBudgetTypeMRMUserUserTitleRepository    = null, IImageService imageService = null, IGraphicFrameRateRepository graphicFrameRateRepository = null, IGraphicPackageRepository graphicPackageRepository = null
                                      , IApprovalTypeChannelBudgetTypeMRMUserUserTitleRepository iApprovalTypeChannelBudgetTypeMRMUserUserTitleRepository = null
                                      , IChannelDeliverableTypeDeliverableGroupRepository channelDeliverableTypeDeliverableGroupRepository = null,
                                      IDeliverableDateSummaryRepository deliverableDateSummaryRepository         = null,
                                      IDeliverableSecondaryTargetRepostiory deliverableSecondaryTargetRepostiory = null,
                                      IDeliverablePlannedLengthRepository deliverablePlannedLengthRepository     = null,
                                      IInternationalService internationalService   = null,
                                      ICommentRepository commentRepository         = null,
                                      ICommentTypeRepository commentTypeRepository = null,
                                      IWBSFiscalYear_ChannelRepository iWBSFiscalYear_ChannelRepository  = null,
                                      IDeliverableHouseNumberRepository deliverableHouseNumberRepository = null,
                                      IPropertyService propertyService = null,
                                      ILineOfBusinessRepository lineOfBusinessRepository = null,
                                      IDeliverableLineOfBusinessRepository deliverableLineOfBusinessRepository = null,
                                      IDeliverableBudgetRepository deliverableBudgetRepository    = null,
                                      IDeliverable_VendorRepository ideliverable_VendorRepository = null,
                                      IDeliverableInternationalDetailRepository deliverableInternationalDetailRepository = null,
                                      IDeliverableInternationalPathRepository deliverableInternationalPathRepository     = null,
                                      //Contract Request - EDMX fix
                                      IHDeliverableBudgetRepository hDeliverableBudgetRepository = null, IDeliverableBudgetRepository deliverable_BudgetRepository = null) : base(
                unitOfWork, deliverableRepository, deliverableStatusRepository, departmentRepository, channelRepository, typeOfWorkRepository, typeOfWorkTypeRepository, deliverableCategoryRepository, deliverableTypeRepository, deliverableSubTypeRepository, targetRepository, activityTypeRepository, budgetTypeRepository, budgetTypeTOWRepository, familyProductIssueTowDeliverableRepository, vendorRepository, productionMethodTypeRepository, userRepository, glAccountRepository, activityStatusRepository, mediaOutletCategoryRepository, mediaOutletRepository,
                printCategoryRepository, calendarRepository, logService, deliverableTypeCompanyVendorRepository, printRepository, mediaBuyCommittedRepository, iInternalRepository, iActivityStatusCategoryRepository, channelCostCenterRepository, /*contractRequestHeaderRepository, contractRequestLineRepository,*/ trackActivityElementRepository, assetGroupRepository, assetGroupChannelHouseAdvertiserRepository, userChannelRepository, channelTalentRepository, talentDeliverableRepository, talentRepository, userTitleRepository, deliverableUserTitleMrmUserRepository, deliverableProductionMethodTypeRepository, deliverableDateTypeRepository, deliverableGroupDeliverableDateTypeRepository, deliverableDeliverableDateTypeRepository, deliverableGroupRepository, scriptRepository, musicRepository, _musicSubLibraryRepository, _musicLibraryRepository, recordingTypeRepository, musicUsageTypeRepository, wbsDeliverablesRepository,
                graphicElementRepository, graphicImageRepository, graphicElementTypeRepository, graphicElementTypeGraphicPackageChannelRepository,
                graphicHeaderRepository,
                trackTypeRepository, workOrderVendorRepository, workOrderTypeRepository,
                deliverableDeliverableGroupDeliverableDateTypeRepository, iDeliverableDateTypeRepository, mediaTypeRepository, approvalRepository, approvalTypeChannelBudgetTypeMRMUserUserTitleRepository, imageService, graphicFrameRateRepository, graphicPackageRepository
                , iApprovalTypeChannelBudgetTypeMRMUserUserTitleRepository
                , channelDeliverableTypeDeliverableGroupRepository,
                deliverableDateSummaryRepository,
                deliverableSecondaryTargetRepostiory,
                deliverablePlannedLengthRepository,
                internationalService,
                commentRepository,
                commentTypeRepository,
                iWBSFiscalYear_ChannelRepository,
                deliverableHouseNumberRepository, propertyService,
                lineOfBusinessRepository,
                deliverableLineOfBusinessRepository,
                deliverableBudgetRepository,
                ideliverable_VendorRepository,
                deliverableInternationalDetailRepository,
                deliverableInternationalPathRepository,
                hDeliverableBudgetRepository, deliverable_BudgetRepository)
        {
        }