public FileNetController(IOfferAppService offerService, IFileNetService fileNetService, ITenderAppService tenderService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _fileNetService = fileNetService; _tenderService = tenderService; _offerService = offerService; }
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); }
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; }
public InvitationController(ITenderAppService tenderAppService, IMapper mapper, ISupplierService supplierService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _tenderAppService = tenderAppService; _mapper = mapper; _supplierService = supplierService; }
public TendersController(ITenderAppService tenderAppService) { _tenderAppService = tenderAppService; }
public DataEntryAuditorHandler(IServiceProvider serviceProvider) { _tenderService = serviceProvider.GetService <ITenderAppService>(); }