コード例 #1
0
        public FileNetController(IOfferAppService offerService, IFileNetService fileNetService, ITenderAppService tenderService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration)
        {
            _fileNetService = fileNetService;
            _tenderService  = tenderService;

            _offerService = offerService;
        }
コード例 #2
0
        public QualificationApiControllertest()
        {
            var serviceProvider = services.BuildServiceProvider();

            tenderService                = serviceProvider.GetService <ITenderAppService>();
            qualificationAppService      = serviceProvider.GetService <IQualificationAppService>();
            iDMAppService                = serviceProvider.GetService <IIDMAppService>();
            lookupAppService             = serviceProvider.GetService <ILookUpService>();
            supplierqualificationService = serviceProvider.GetService <ISupplierQualificationDocumentAppService>();
            verificationService          = serviceProvider.GetService <IVerificationService>();

            //Configure mapping just for this test
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <PreQualificationBasicDetailsModel, PreQualificationBasicDetailsModel>();
                cfg.CreateMap <MOF.Etimad.Monafasat.Core.Entities.Tender, PreQualificationSavingModel>();
                cfg.ValidateInlineMaps = false;
            });

            mapper = config.CreateMapper();

            _mockRootConfiguration = MockHelper.CreateIOptionSnapshotMock(new MOF.Etimad.Monafasat.SharedKernal.RootConfigurations());
            //verificationService = new Mock<IVerificationService>().Object;
            authorizationService = new Mock <IAuthorizationService>().Object;
            supplierService      = new Mock <ISupplierService>().Object;
            offerAppService      = new Mock <IOfferAppService>().Object;
            supplierQualificationDocumentDomainService = new Mock <ISupplierQualificationDocumentDomainService>().Object;
            memoryCache      = new Mock <IMemoryCache>().Object;
            branchAppService = new Mock <IBranchAppService>().Object;

            _qualificationController = new QualificationController(supplierqualificationService, qualificationAppService, mapper, verificationService,
                                                                   iDMAppService, authorizationService, supplierService, offerAppService, lookupAppService, tenderService, supplierQualificationDocumentDomainService, _mockRootConfiguration);

            _lookupController = new LookupController(lookupAppService, mapper, iDMAppService, branchAppService, memoryCache, _mockRootConfiguration);
        }
コード例 #3
0
 public EnquiryAppService(IIDMAppService iDMAppService, INotificationAppService notificationAppService, IMapper mapper, IEnquiryQueries enquiryQueries, IEnquiryCommands enquiryCommands, ITenderAppService tenderAppService, IEnquiryDomainService enquiryDomain, IHttpContextAccessor httpContextAccessor, IOptionsSnapshot <RootConfigurations> rootConfiguration)
 {
     _iDMAppService          = iDMAppService;
     _enquiryCommands        = enquiryCommands;
     _enquiryQueries         = enquiryQueries;
     _mapper                 = mapper;
     _notificationAppService = notificationAppService;
     _tenderAppService       = tenderAppService;
     _enquiryDomain          = enquiryDomain;
     _rootConfiguration      = rootConfiguration.Value;
     _httpContextAccessor    = httpContextAccessor;
 }
コード例 #4
0
 public InvitationController(ITenderAppService tenderAppService, IMapper mapper, ISupplierService supplierService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration)
 {
     _tenderAppService = tenderAppService;
     _mapper           = mapper;
     _supplierService  = supplierService;
 }
コード例 #5
0
 public TendersController(ITenderAppService tenderAppService)
 {
     _tenderAppService = tenderAppService;
 }
コード例 #6
0
 public DataEntryAuditorHandler(IServiceProvider serviceProvider)
 {
     _tenderService = serviceProvider.GetService <ITenderAppService>();
 }