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 void Execute() { using (var serviceProvider = new PrepareDependancies().SetupDependancies().BuildServiceProvider()) { offerAppService = serviceProvider.GetService <IOfferAppService>(); AsyncHelper.RunSync(() => offerAppService.EncryptQuantitiesTableItems()); } }
public OfferApiController() { _offerAppService = new OfferAppService(new OfferRepository(new GoatDb())); }
public NotifayManager(IOfferAppService offerAppService) { _offerAppService = offerAppService; }
public OfferController() { _offerAppService = new OfferAppService(new OfferRepository(db)); }
public ReportsController(IOfferAppService offerService, IMapper mapper, IReportsService reportsService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _offerService = offerService; _mapper = mapper; _reportsService = reportsService; }
/// <summary> /// Constructor /// </summary> /// <param name="offerAppService"></param> public OffersController(IOfferAppService offerAppService) { _offerAppService = offerAppService; }