示例#1
0
 public UsersController(DatabaseContext context, IUserService userService, IPartnerService partnerService, IJWTService jWTService)
 {
     _context        = context;
     _userService    = userService;
     _partnerService = partnerService;
     _jWTService     = jWTService;
 }
示例#2
0
 public DeletePartnerCommand(IOrderService orderService, IPartnerService partnerService, IWriter writer, IReader reader)
 {
     this.orderService   = orderService ?? throw new ArgumentNullException(nameof(orderService));
     this.partnerService = partnerService ?? throw new ArgumentNullException(nameof(partnerService));
     this.writer         = writer ?? throw new ArgumentNullException(nameof(writer));
     this.reader         = reader ?? throw new ArgumentNullException(nameof(reader));
 }
 /// <summary>
 /// Class Constructor
 /// </summary>
 /// <param name="linksRepository">IoC resolution for our Repository class.</param>
 public SeatApiController(IPartnerService partnerService,
                          ILogger <PartnerApiController> logger,
                          IUserDataService userDataService,
                          ISubscriptionService subscriptionService,
                          ILicenceEnvironmentService licenceEnvironmentService,
                          IMemoryCache cache,
                          IDeviceTypeDictionaryService deviceTypeDictionaryService,
                          IDeviceModelDictionaryService deviceModelDictionaryService,
                          IEKeyService eKeyService,
                          IEnterpriseClientService enterpriseClientService,
                          IUserService userService)
 {
     _partnerService               = partnerService;
     _logger                       = logger;
     _userDataService              = userDataService;
     _subscriptionService          = subscriptionService;
     _licenceEnvironmentService    = licenceEnvironmentService;
     _deviceTypeDictionaryService  = deviceTypeDictionaryService;
     _deviceModelDictionaryService = deviceModelDictionaryService;
     _cache                   = cache;
     _eKeyService             = eKeyService;
     _userService             = userService;
     _enterpriseClientService = enterpriseClientService;
     _configuration           = CommonHelper.GetConfigurationObject();
     FillCache();
 }
示例#4
0
 public ProductSearchController(ProductService prodService, PartnerService partnerService)
 {
     this.prodService    = prodService;
     this.partnerService = partnerService;
     errorView           = new ProductSearchErrorView();
     resultView          = new ProductSearchResultView();
 }
 public PartnerActionMapFactory(IPartnerActionMapService service, IPartnerService partnerService, IActionService actionService, IMapper mapper)
 {
     _service        = service;
     _partnerService = partnerService;
     _actionService  = actionService;
     _mapper         = mapper;
 }
示例#6
0
        public PartnerControllerTests()
        {
            var config = new MapperConfiguration(
                cfg =>
            {
                cfg.AddProfile <TestMapperProfile>();
            });

            mapper = config.CreateMapper();
            var options = new DbContextOptionsBuilder <DeliverItContext>()
                          .UseInMemoryDatabase(databaseName: "Add_writes_to_database")
                          .Options;

            mapper         = config.CreateMapper();
            dbContext      = new DeliverItContext(options);
            partnerService = new PartnerService(dbContext);

            dbContext.Partners.Add(new Partner
            {
                Name     = "Ikea",
                Password = "******"
            });
            dbContext.SaveChanges();
            appSettings = Options.Create <AppSettings>(new AppSettings {
                Secret = "Thisisaverylonglongsecret"
            });
        }
 public PartnerAgenciesController(ILogger <PartnerAgenciesController> logger,
                                  IPartnerService service,
                                  IMapper mapper)
 {
     this.logger  = logger;
     this.service = service;
     this.mapper  = mapper;
 }
 public ReportNonVatDocumentsService(ICompanyDeletableEntityRepository <NonVatDocument> nonVatDocumentRepo,
                                     IPartnerService partnerService,
                                     IUserCompanyTemp userCompanyTemp)
 {
     this.nonVatDocumentRepo = nonVatDocumentRepo;
     this.partnerService     = partnerService;
     this.userCompanyTemp    = userCompanyTemp;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public PartnerController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IUserService userService, IPartnerService partnerService,
			IRecipeDataService recipeDataService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.UserService = userService;
			this.PartnerService = partnerService;
			this.RecipeDataService = recipeDataService;
		}
示例#10
0
 public UsedActionFactory(IUsedActionService service, IPartnerService partnerService, IActionService actionService, IUserService userService, IMapper mapper)
 {
     _service        = service;
     _partnerService = partnerService;
     _actionService  = actionService;
     _mapper         = mapper;
     _userService    = userService;
 }
示例#11
0
 public CourseController(ICourseServices courseSvc, IPlatformUserService puserSvc, IMapper mapper, IAppUser user, IPartnerService partnerSvc, IPermission pm, IIDTools idTool) : base(user, mapper)
 {
     _courseSvc  = courseSvc;
     _puserSvc   = puserSvc;
     _partnerSvc = partnerSvc;
     _pm         = pm;
     _idTool     = idTool;
 }
示例#12
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public PartnerController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserService userService, IPartnerService partnerService,
                          IRecipeDataService recipeDataService)
 {
     this.UnitOfWorkFactory = unitOfWorkFactory;
     this.UserService       = userService;
     this.PartnerService    = partnerService;
     this.RecipeDataService = recipeDataService;
 }
        public PartnerAuthenticateCommand(IPartnerService partnerService)
        {
            _partnerService = partnerService;

            Mapper.AddProfile <ExternalToInternalRequestMapProfile>();
            Mapper.AddProfile <InternalToExternalResponseMapProfile>();
            Mapper.AssertConfigurationIsValid();
        }
示例#14
0
 public ProductController(IDbContext dbContext, IProductService productService, IPartnerService partnerService, ISiteProvider siteProvider, HttpContextBase context, ICacheService cache)
     : base(dbContext, partnerService, siteProvider)
 {
     _productService = productService;
     _partnerService = partnerService;
     _contextBase    = context;
     _cache          = cache;
 }
示例#15
0
        public ProductGetByIdCommand(IProductService productService, IPartnerService partnerService) : base(partnerService)
        {
            _productService = productService;

            Mapper.AddProfile <ExternalToInternalRequestMapProfile>();
            Mapper.AddProfile <InternalToExternalResponseMapProfile>();
            Mapper.AssertConfigurationIsValid();
        }
示例#16
0
 public AccountService(IOptions <AuthOptions> authenticationOptions, SignInManager <User> signInManager, UserManager <User> userManager, ICustomerService customerService, IPartnerService partnerService)
 {
     _authenticationOptions = authenticationOptions.Value;
     _signInManager         = signInManager;
     _userManager           = userManager;
     _customerService       = customerService;
     _partnerService        = partnerService;
 }
示例#17
0
 public SaleService(IMobiRepository <Sale> mobiRepository, IUOMService uomService, IProductServices productServices, ISalesOrderLineService salesOrderLine, IPartnerService partnerService)
 {
     _Repository            = mobiRepository;
     _uomService            = uomService;
     _partnerService        = partnerService;
     _productServices       = productServices;
     _salesOrderLineService = salesOrderLine;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public DefaultSendToShopEmailMessageFactory(IUserService userService, IPartnerService partnerService, IStringCryptoService stringCryptoService,
			IWebSettings webSettings, IRecipeDataService recipeDataService)
		{
			this.UserService = userService;
			this.PartnerService = partnerService;
			this.StringCryptoService = stringCryptoService;
			this.WebSettings = webSettings;
			this.RecipeDataService = recipeDataService;
		}
示例#19
0
 public PartnersController(
     IPartnerService partnerService,
     IMapper mapper,
     ILogFactory logFactory)
 {
     _partnerService = partnerService;
     _mapper         = mapper;
     _log            = logFactory.CreateLog(this);
 }
示例#20
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public DefaultSendToShopEmailMessageFactory(IUserService userService, IPartnerService partnerService, IStringCryptoService stringCryptoService,
                                             IWebSettings webSettings, IRecipeDataService recipeDataService)
 {
     this.UserService         = userService;
     this.PartnerService      = partnerService;
     this.StringCryptoService = stringCryptoService;
     this.WebSettings         = webSettings;
     this.RecipeDataService   = recipeDataService;
 }
示例#21
0
        public PartnersController(IPartnerService pService,
                                  IWorkContext workContext,
                                  IRepository <PartnersRecord> pRepository

                                  )
        {
            this._pService    = pService;
            this._workContext = workContext;
            this._pRepository = pRepository;
        }
示例#22
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public SendToShopController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService,
                             IRecipeService recipeService, ISendToShopService sendToShopService, IStringCryptoService stringCryptoService)
 {
     this.UnitOfWorkFactory   = unitOfWorkFactory;
     this.PartnerIdResolver   = partnerIdResolver;
     this.PartnerService      = partnerService;
     this.RecipeService       = recipeService;
     this.SendToShopService   = sendToShopService;
     this.StringCryptoService = stringCryptoService;
 }
 /// <summary>
 /// Class Constructor
 /// </summary>
 /// <param name="linksRepository">IoC resolution for our Repository class.</param>
 public LicenceApiController(ISubscriptionService subscriptionService, IEnterpriseClientService enterpriseClientService, IPartnerService partnerService, ILicenceEnvironmentService licenceEnvironmentService, IProductService productService, IUserService userService, ILogger <LicenceApiController> logger)
 {
     _subscriptionService       = subscriptionService;
     _licenceEnvironmentService = licenceEnvironmentService;
     _productService            = productService;
     _logger                  = logger;
     _userService             = userService;
     _enterpriseClientService = enterpriseClientService;
     _partnerService          = partnerService;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public SendToShopController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService, 
			IRecipeService recipeService, ISendToShopService sendToShopService, IStringCryptoService stringCryptoService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.PartnerIdResolver = partnerIdResolver;
			this.PartnerService = partnerService;
			this.RecipeService = recipeService;
			this.SendToShopService = sendToShopService;
			this.StringCryptoService = stringCryptoService;
		}
示例#25
0
 public PartnersController(
     IPartnerService partnerService,
     IPaymentManagementClient paymentManagementClient,
     IMapper mapper,
     ILogFactory logFactory)
 {
     _partnerService          = partnerService;
     _paymentManagementClient = paymentManagementClient;
     _mapper = mapper;
     _log    = logFactory.CreateLog(this);
 }
示例#26
0
 public CreateOrderCommand(IPDFExporter pDFExporter, IWriter writer, IReader reader, IOrderService orderService, IProductService productService, IPartnerService partnerService, IProductWarehouseService productWarehouseService, IWarehouseService warehouseService)
 {
     this.pDFExporter             = pDFExporter ?? throw new ArgumentNullException(nameof(pDFExporter));
     this.writer                  = writer ?? throw new ArgumentNullException(nameof(writer));
     this.reader                  = reader ?? throw new ArgumentNullException(nameof(reader));
     this.orderService            = orderService ?? throw new ArgumentNullException(nameof(orderService));
     this.productService          = productService ?? throw new ArgumentNullException(nameof(productService));
     this.partnerService          = partnerService ?? throw new ArgumentNullException(nameof(partnerService));
     this.productWarehouseService = productWarehouseService ?? throw new ArgumentNullException(nameof(productWarehouseService));
     this.warehouseService        = warehouseService ?? throw new ArgumentNullException(nameof(warehouseService));
 }
示例#27
0
 public LoadTestAppController(IPartnerService partnerService, IPosService posService,
                              IProductService productService, IHttpContextAccessor httpContextAccessor, IUtilityService utilityService
                              , IViewRenderService viewRenderService)
 {
     _partnerService      = partnerService;
     _posService          = posService;
     _productService      = productService;
     _httpContextAccessor = httpContextAccessor;
     _utilityService      = utilityService;
     _viewRenderService   = viewRenderService;
 }
示例#28
0
 public PartnerController(
     IPartnerService partnerService,
     UserManager <User> userManager,
     IHostingEnvironment hostingEnvironment,
     IHtmlService html)
 {
     this.partnerService     = partnerService;
     this.userManager        = userManager;
     this.hostingEnvironment = hostingEnvironment;
     this.html = html;
 }
示例#29
0
        public static IPartnerService CreatePayService(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                name = string.Empty;
            }
            name = name.Trim().ToUpper();

            IPartnerService service = GetPartnerService(name);

            return(service);
        }
 public ViewVatDocumentService(
     ICompanyDeletableEntityRepository <VatDocument> vatDocumentRepo,
     ICompanySettingsService companySettingsService,
     IPartnerService partnerService,
     IPaymentTypeService paymentTypeService,
     IBankAccountService bankAccountService)
 {
     this.vatDocumentRepo        = vatDocumentRepo;
     this.companySettingsService = companySettingsService;
     this.partnerService         = partnerService;
     this.paymentTypeService     = paymentTypeService;
     this.bankAccountService     = bankAccountService;
 }
示例#31
0
 public SunAccountDetailViewModel(IEventAggregator eventAggregator,
                                  IPartnerService service,
                                  IOdooService oDooService,
                                  ISunSystemService sunSystemService)
 {
     _service                 = service;
     _oDooService             = oDooService;
     _sunSystemService        = sunSystemService;
     _eventAggregator         = eventAggregator;
     SearchCommand            = new AsyncCommand(ExecuteSearch, CanExecuteSearch);
     PopulateCustomersCommand = new AsyncCommand(ExecutePopulateCustomers, CanExecutePopulateCustomers);
     LoadCustomerInfoCommand  = new AsyncCommand(ExecuteLoadCustomerInfo, CanExecuteLoadCustomerInfo);
 }
示例#32
0
 /// <summary>
 /// Class Constructor
 /// </summary>
 /// <param name="linksRepository">IoC resolution for our Repository class.</param>
 public EnterpriseClientApiController(IEnterpriseClientService enterpriseClientService,
                                      IPartnerService partnerService,
                                      IUserService userService,
                                      ILogger <EnterpriseClientApiController> logger,
                                      IEKeyService eKeyService)
 {
     _enterpriseClientService = enterpriseClientService;
     _partnerService          = partnerService;
     _userService             = userService;
     _logger        = logger;
     _configuration = CommonHelper.GetConfigurationObject();
     _eKeyService   = eKeyService;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public DefaultSendToShopService(IBrewgrRepository repository, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService, 
			IUserService userService, IStringCryptoService stringCryptoService, IWebSettings webSettings, IEmailSender emailSender,
			IRecipeDataService recipeDataService, ISendToShopEmailMessageFactory sendToShopEmailMessageFactory)
		{
			this.Repository = repository;
			this.PartnerIdResolver = partnerIdResolver;
			this.PartnerService = partnerService;
			this.UserService = userService;
			this.StringCryptoService = stringCryptoService;
			this.WebSettings = webSettings;
			this.EmailSender = emailSender;
			this.RecipeDataService = recipeDataService;
			this.SendToShopEmailMessageFactory = sendToShopEmailMessageFactory;
		}
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public DefaultSendToShopService(IBrewgrRepository repository, IPartnerIdResolver partnerIdResolver, IPartnerService partnerService,
                                 IUserService userService, IStringCryptoService stringCryptoService, IWebSettings webSettings, IEmailSender emailSender,
                                 IRecipeDataService recipeDataService, ISendToShopEmailMessageFactory sendToShopEmailMessageFactory)
 {
     this.Repository                    = repository;
     this.PartnerIdResolver             = partnerIdResolver;
     this.PartnerService                = partnerService;
     this.UserService                   = userService;
     this.StringCryptoService           = stringCryptoService;
     this.WebSettings                   = webSettings;
     this.EmailSender                   = emailSender;
     this.RecipeDataService             = recipeDataService;
     this.SendToShopEmailMessageFactory = sendToShopEmailMessageFactory;
 }
示例#35
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public RecipeController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IRecipeService recipeService, IBeerStyleService beerStyleService, 
			IStaticContentService staticContentService, IUserService userService, INotificationService notificationService, IPartnerIdResolver partnerIdResolver,
			IBeerXmlRecipeExporter beerXmlExporter, IBeerXmlRecipeImporter beerXmlImporter, IPartnerService partnerService, ISendToShopService sendToShopService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.RecipeService = recipeService;
			this.BeerStyleService = beerStyleService;
			this.StaticContentService = staticContentService;
            this.UserService = userService;
			this.NotificationService = notificationService;
			this.PartnerIdResolver = partnerIdResolver;
			this.BeerXmlExporter = beerXmlExporter;
			this.BeerXmlImporter = beerXmlImporter;
			this.PartnerService = partnerService;
			this.SendToShopService = sendToShopService;
		}
 public PartnerController(IPartnerService partnerService, IUserManagerService userService)
 {
     this._partnerService = partnerService;
     this._userService = userService;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public DefaultPartnerIdResolver(IStringCryptoService stringCryptoService, IPartnerService partnerService)
		{
			this.StringCryptoService = stringCryptoService;
			this.PartnerService = partnerService;
		}
 public ContactsController(IPartnerService partnerService, IContactService contactService)
 {
     _partnerService = partnerService;
     _contactService = contactService;
 }
 public HostedOrganisationActionFilter(IStatusService statusService, IPartnerService partnerService, IUserManagerService userService)
 {
     this._statusService = statusService;
     this._partnerService = partnerService;
     this._userService = userService;
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (PartnerService != null)
         {
             PartnerService = null;
         }
     }
     base.Dispose(disposing);
 }
示例#41
0
 public PartnerController(IPartnerService partnerService)
 {
     if (partnerService == null)
         throw new ArgumentNullException();
     this.partnerService = partnerService;
 }
 public PartnersController(IPartnerService partnerService)
 {
     _partnerService = partnerService;
 }