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 CommitteeController(IBranchAppService branchService, IIDMAppService iDMAppService, ICommitteeAppService committeeApplication, IMapper mapper, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _committeeApplication = committeeApplication; _branchService = branchService; _iDMAppService = iDMAppService; _mapper = mapper; }
public BlockController(IBlockAppService blockService, ISupplierService supplierService, IVerificationService verification, IIDMAppService iDMAppService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _blockService = blockService; _supplierService = supplierService; _verification = verification; _iDMAppService = iDMAppService; }
public ManageUsersAssignationController(IManageUsersAssignationAppService usersService, IIDMAppService iDMAppService, ICommitteeAppService committeeApplication, IBranchAppService branchService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _iDMAppService = iDMAppService; _usersService = usersService; _branchService = branchService; _committeeApplication = committeeApplication; }
public ManageVendorsController(IMapper mapper, IIDMAppService iDMAppService, ICommitteeAppService committeeApplication, IBranchAppService branchService, ISupplierService supplierService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _iDMAppService = iDMAppService; _mapper = mapper; _branchService = branchService; _committeeApplication = committeeApplication; _supplierService = supplierService; }
public LookupController(ILookUpService lookupService, IMapper mapper, IIDMAppService iDMAppService, IBranchAppService branchAppService, IMemoryCache cache, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { this.lookupService = lookupService; this.mapper = mapper; _iDMAppService = iDMAppService; _branchAppService = branchAppService; _cache = cache; }
public CommitteeAppService(ICommitteeDomainService committeeDomainService, IGenericCommandRepository genericCommandRepository, ICommitteeQueries committeeQueries, IIDMAppService iDMAppService, INotificationAppService notificationAppService) { _committeeDomainService = committeeDomainService; _committeeQueries = committeeQueries; _genericCommandRepository = genericCommandRepository; _iDMAppService = iDMAppService; _notificationAppService = notificationAppService; }
public LookUpService(ILookUpServiceQueries lookupServiceQueries, IMapper mapper, IGenericCommandRepository genericrepository, IIDMAppService idmAppService, ISMEASizeInquiryProxy sMEASizeInquiryProxy) { _mapper = mapper; _lookupServiceQueries = lookupServiceQueries; _genericrepository = genericrepository; _idmAppService = idmAppService; _sMEASizeInquiryProxy = sMEASizeInquiryProxy; }
//private readonly ITenderAppService _tenderAppService; public PreQualificationNotification(INotifayAppService notifayAppService, IConfiguration configuration, ISupplierService supplierService, IIDMAppService iDMAppService)//, ITenderAppService tenderAppService) { _notifayAppService = notifayAppService; _configuration = configuration; _supplierService = supplierService; //_tenderAppService = tenderAppService; _iDMAppService = iDMAppService; }
public BranchAppService(IBranchServiceQueries branchServiceQueries, IBranchServiceCommand branchServiceCommand, IBranchServiceDomain branchServiceDomain, IGenericCommandRepository genericCommandRepository, IIDMAppService iDMAppService, INotificationAppService notificationAppService) { _branchServiceQueries = branchServiceQueries; _branchServiceCommand = branchServiceCommand; _branchServiceDomain = branchServiceDomain; _genericCommandRepository = genericCommandRepository; _iDMAppService = iDMAppService; _notificationAppService = notificationAppService; }
public ManageUsersAssignationAppService(IBranchServiceDomain branchServiceDomain, ICommitteeDomainService committeeDomainService, IGenericCommandRepository genericCommandRepository, IIDMAppService iDMAppService, IIDMQueries iDMQueries, INotificationAppService notificationAppService, IHttpContextAccessor httpContextAccessor) { _branchServiceDomain = branchServiceDomain; _genericCommandRepository = genericCommandRepository; _iDMAppService = iDMAppService; _iDMQueries = iDMQueries; _committeeDomainService = committeeDomainService; _notificationAppService = notificationAppService; _httpContextAccessor = httpContextAccessor; }
public AccountController(INotificationAppService notificationAppService, IMemoryCache cache, IMapper mapper, IIDMAppService iDMAppService, IBranchAppService iBranchAppService, ISubscriptionService subscriptionService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _notificationAppService = notificationAppService; _mapper = mapper; _iDMAppService = iDMAppService; _IbranchAppService = iBranchAppService; _subscriptionService = subscriptionService; _rootConfiguration = rootConfiguration.Value; _cache = cache; }
public SupplierService(IAppDbContext context, IYasserProxy Iyesserproxy, ISupplierCommands supplierCommands, ISupplierQueries supplierQueries, IIDMAppService iidmService, IMapper mapper, IBlockAppService blockAppService, INotificationAppService notificationAppService) { _supplierCommands = supplierCommands; _supplierQueries = supplierQueries; _iidmService = iidmService; _mapper = mapper; _blockAppService = blockAppService; _IYasserproxy = Iyesserproxy; _notificationAppService = notificationAppService; }
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 BlockAppService(IAppDbContext context, INotificationAppService notificationAppService, IMapper mapper, IIDMAppService iDMAppService, IBlockQueries blockQueries, IBlockCommands blockCommands, IGenericCommandRepository genericrepository, IYasserProxy yesserProxy, ISupplierQueries supplierQueries, IIDMQueries iDMQueries, IVerificationService verification, INotificationQueries notificationQueries) { _notificationAppService = notificationAppService; _blockCommands = blockCommands; _blockQueries = blockQueries; _genericrepository = genericrepository; _mapper = mapper; _supplierQueries = supplierQueries; _iDMAppService = iDMAppService; _verification = verification; _iDMQueries = iDMQueries; }
public BlockApiControllerTest() { var serviceProvider = services.BuildServiceProvider(); lookUpService = serviceProvider.GetService <ILookUpService>(); blockAppService = serviceProvider.GetService <IBlockAppService>(); supplierService = serviceProvider.GetService <ISupplierService>(); verificationService = serviceProvider.GetService <IVerificationService>(); iDMAppService = serviceProvider.GetService <IIDMAppService>(); rootConfigurationsMock = SetupConfigurations.GetApplicationConfiguration(Directory.GetCurrentDirectory()); _blockController = new BlockController(blockAppService, supplierService, verificationService, iDMAppService, rootConfigurationsMock.Object); }
public LookupApiControllerTest() { var serviceProvider = services.BuildServiceProvider(); lookUpService = serviceProvider.GetService<ILookUpService>(); var config = new MapperConfiguration(cfg => { //cfg.CreateMap<SupplierSpecificationModel, SupplierSpecificationAttachment>(); cfg.ValidateInlineMaps = false; }); mapper = config.CreateMapper(); iDMAppService = serviceProvider.GetService<IIDMAppService>(); branchAppService = serviceProvider.GetService<IBranchAppService>(); memoryCache = serviceProvider.GetService<IMemoryCache>(); rootConfigurationsMock = SetupConfigurations.GetApplicationConfiguration(Directory.GetCurrentDirectory()); _lookupController = new LookupController(lookUpService, mapper, iDMAppService, branchAppService, memoryCache, rootConfigurationsMock.Object); }
public BranchApiConrtollerTest() { var serviceProvider = services.BuildServiceProvider(); branchAppService = serviceProvider.GetService <IBranchAppService>(); iDMAppService = serviceProvider.GetService <IIDMAppService>(); //Configure mapping just for this test var config = new MapperConfiguration(cfg => { cfg.ValidateInlineMaps = false; }); mapper = config.CreateMapper(); _mockRootConfiguration = MockHelper.CreateIOptionSnapshotMock(new MOF.Etimad.Monafasat.SharedKernal.RootConfigurations()); memoryCache = new Mock <IMemoryCache>().Object; _branchController = new BranchController(branchAppService, iDMAppService, _mockRootConfiguration); }
public BillAppService(IOptionsSnapshot <RootConfigurations> rootConfiguration, IBillingProxy billingProxy, INotificationAppService notificationAppService, IBillCommand billCommands, IBillQueries billQueries, IIDMAppService idmAppService, ILogger <BillAppService> logger, IBillArchiveCommand billArchiveCommands) { _billProxy = billingProxy; _billCommands = billCommands; _billArchiveCommands = billArchiveCommands; _billQueries = billQueries; _notificationAppService = notificationAppService; _idmAppService = idmAppService; RootConfigurations _rootConfiguration = rootConfiguration.Value; _billRefIdForBillingForSaddad = _rootConfiguration.EsbSettingsConfiguration.BillRefIdForBillingForSaddad; _billAgencyCodeForSaddad = _rootConfiguration.EsbSettingsConfiguration.BillAgencyCodeForSaddad; _billAgencyJebayaIdentifierForSaddad = _rootConfiguration.EsbSettingsConfiguration.BillAgencyCodeentifierForSaddad; _clientKey = _rootConfiguration.BillingConfiguration.ClientKey; _benAgencyCodeForInvitations = _rootConfiguration.EsbSettingsConfiguration.BenAgencyCodeForInvitations; _benAgencyCodeForConditionsBooklet = _rootConfiguration.EsbSettingsConfiguration.BenAgencyCodeForConditionsBooklet; _gFSCODEForConditionalBooklet = _rootConfiguration.BillingConfiguration.GFSCODEForConditionalBooklet; _gFSCODEForInvitations = _rootConfiguration.BillingConfiguration.GFSCODEForInvitations; _gFSCODEForAddedValue = _rootConfiguration.BillingConfiguration.GFSCODEForAddedValue; _logger = logger; }
public BranchController(IBranchAppService branchService, IIDMAppService iDMAppService, IOptionsSnapshot <RootConfigurations> rootConfiguration) : base(rootConfiguration) { _iDMAppService = iDMAppService; _branchService = branchService; }