Ejemplo n.º 1
0
 public ManageRequestsController(
     ICreateOrganizationRequestsService createOrganizationRequests,
     IOrganizationsService organizations)
 {
     this.createOrganizationRequests = createOrganizationRequests;
     this.organizations = organizations;
 }
 public OrganizationsController(
     ILogger <OrganizationsController> logger,
     IOrganizationsService organizationsService)
 {
     _logger = logger;
     _organizationsService = organizationsService;
 }
Ejemplo n.º 3
0
 public ZammadWorkProvider(ILogger <ZammadWorkProvider> logger, IMapper mapper, ICodeHubCache codeHubCache, IOrganizationsService organizationsService)
 {
     _mapper               = mapper;
     _logger               = logger;
     _codeHubCache         = codeHubCache;
     _organizationsService = organizationsService;
 }
Ejemplo n.º 4
0
 public ManageRequestsController(
     ICreateOrganizationRequestsService createOrganizationRequests,
     IOrganizationsService organizations)
 {
     this.createOrganizationRequests = createOrganizationRequests;
     this.organizations = organizations;
 }
Ejemplo n.º 5
0
 public DevOpsManager(IOptions <DevOpsConfiguration> devOpsConfiguration, IMapper mapper, ILogger <DevOpsManager> logger, ICodeHubCache codeHubCache, IOrganizationsService organizationsService)
 {
     _devOpsConfiguration = devOpsConfiguration;
     _mapper               = mapper;
     _logger               = logger;
     _codeHubCache         = codeHubCache;
     _organizationsService = organizationsService;
 }
Ejemplo n.º 6
0
 public ProductsService(
     IDeletableEntityRepository <Product> productsRepository,
     IOrganizationsService organizationsService,
     ICloudinaryService cloudinaryService)
 {
     this.productsRepository   = productsRepository;
     this.organizationsService = organizationsService;
     this.cloudinaryService    = cloudinaryService;
 }
Ejemplo n.º 7
0
 public ProductsController(
     IProductsService productsService,
     IOrganizationsService organizationsService,
     UserManager <ApplicationUser> userManager)
 {
     this.productsService      = productsService;
     this.organizationsService = organizationsService;
     this.userManager          = userManager;
 }
Ejemplo n.º 8
0
 public StatisticsController(
     IStatisticsService statisticsService,
     IOrganizationsService organizationsService,
     UserManager <ApplicationUser> userManager)
 {
     this.statisticsService    = statisticsService;
     this.organizationsService = organizationsService;
     this.userManager          = userManager;
 }
Ejemplo n.º 9
0
 public ManageRequestsController(
     IJoinOrganizationService joinOrganizationRequests,
     IUsersService users,
     IOrganizationsService organizations)
 {
     this.joinOrganizationRequests = joinOrganizationRequests;
     this.users         = users;
     this.organizations = organizations;
 }
Ejemplo n.º 10
0
 public AdministrationController(
     IOrganizationsService organizations,
     IUsersService users,
     IOrganizationImagesService organizationImages)
 {
     this.organizations      = organizations;
     this.users              = users;
     this.organizationImages = organizationImages;
 }
Ejemplo n.º 11
0
 public ManageRequestsController(
     IJoinOrganizationService joinOrganizationRequests,
     IUsersService users,
     IOrganizationsService organizations)
 {
     this.joinOrganizationRequests = joinOrganizationRequests;
     this.users = users;
     this.organizations = organizations;
 }
Ejemplo n.º 12
0
 public ManageCarImagesController(
     IOrganizationsService organizations,
     IOrganizationImagesService organizationImages,
     ICarImagesService carImages)
 {
     this.organizations = organizations;
     this.organizationImages = organizationImages;
     this.carImages = carImages;
 }
Ejemplo n.º 13
0
 public OrganizationsController(IOrganizationTypesService organizationTypesService,
                                IOrganizationsService organizationsService, IAuthorizeService authService, ICalendarService calendarService)
 {
     _organizationTypesService = organizationTypesService;
     _organizationsService     = organizationsService ?? throw new ArgumentNullException(nameof(organizationsService));
     _authService = authService;
     _organizationsService.ValidationDictionary = new ValidationDictionary(ModelState);
     _calendarService = calendarService ?? throw new ArgumentNullException(nameof(calendarService));
 }
Ejemplo n.º 14
0
 public ManageCarImagesController(
     IOrganizationsService organizations,
     IOrganizationImagesService organizationImages,
     ICarImagesService carImages)
 {
     this.organizations      = organizations;
     this.organizationImages = organizationImages;
     this.carImages          = carImages;
 }
Ejemplo n.º 15
0
 public AdministrationController(
     IOrganizationsService organizations,
     IUsersService users,
     IOrganizationImagesService organizationImages)
 {
     this.organizations = organizations;
     this.users = users;
     this.organizationImages = organizationImages;
 }
 public JobOffersController(
     IJobOffersService jobOffers,
     IOrganizationsService organizations,
     ISkillsService skills)
 {
     this.jobOffers = jobOffers;
     this.organizations = organizations;
     this.skills = skills;
 }
Ejemplo n.º 17
0
 public OrganizationsController(
     IOrganizationsService organizationsService,
     IMapper mapper,
     IAuthenticationService authenticationService)
 {
     _organizationsService =
         organizationsService ?? throw new ArgumentNullException(nameof(organizationsService));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _authenticationService =
         authenticationService ?? throw new ArgumentNullException(nameof(authenticationService));
 }
Ejemplo n.º 18
0
        public void Initialize()
        {
            // Setup
            this.unitOfWorkMock          = new Mock <IUnitOfWork>();
            this.organizationsRepository = new DefaultTestRepository <Organization>();

            this.unitOfWorkMock.Setup(s => s.CreateGenericRepository <Organization>())
            .Returns(() => this.organizationsRepository);

            this.sut = new OrganizationsService(unitOfWorkMock.Object);
        }
Ejemplo n.º 19
0
 public CustomersService(
     IDeletableEntityRepository <Customer> customersRepository,
     IAddressesService addressesService,
     IPhonesServices phonesServices,
     IEmailsService emailsService,
     IOrganizationsService organizationsService)
 {
     this.customersRepository  = customersRepository;
     this.addressesService     = addressesService;
     this.phonesServices       = phonesServices;
     this.emailsService        = emailsService;
     this.organizationsService = organizationsService;
 }
Ejemplo n.º 20
0
        public OrganizationsServiceTests()
        {
            DbContextOptionsBuilder <ApplicationDbContext> options =
                new DbContextOptionsBuilder <ApplicationDbContext>()
                .UseInMemoryDatabase(Guid.NewGuid().ToString());

            this.applicationDbContext    = new ApplicationDbContext(options.Options);
            this.organizationsRepository = new EfDeletableEntityRepository <Organization>(this.applicationDbContext);
            this.fightersRepository      = new EfDeletableEntityRepository <Fighter>(this.applicationDbContext);
            this.usersRepository         = new EfDeletableEntityRepository <ApplicationUser>(this.applicationDbContext);
            this.organizationsService    = new OrganizationsService(this.organizationsRepository, this.usersRepository, this.fightersRepository);

            var organization = new Organization()
            {
                Id            = 5,
                Name          = "UFC",
                Location      = "USA",
                FansCount     = 100,
                InstantCash   = 10000,
                MoneyPerFight = 3000,
            };

            this.organizationsRepository.AddAsync(organization);
            this.organizationsRepository.SaveChangesAsync();

            var fighter = new Fighter()
            {
                Id             = 2,
                SkillId        = 2,
                BiographyId    = 2,
                OrganizationId = 2,
                CategoryId     = 3,
                UserId         = "51926c23-8a91-4e7e-94be-a97dd84bad1d",
                RecordId       = 1,
                MoneyPerFight  = 200,
                FansCount      = 300,
            };

            this.fightersRepository.AddAsync(fighter);
            this.fightersRepository.SaveChangesAsync();

            var user = new ApplicationUser()
            {
                Id       = "51926c23-8a91-4e7e-94be-a97dd84bad1d",
                Coins    = 10000,
                UserName = "******",
            };

            this.usersRepository.AddAsync(user);
            this.usersRepository.SaveChangesAsync();
        }
 public FightersController(
     IFightersService fightersService,
     ICategoriesService categoriesService,
     IBiographiesService biographiesService,
     ISkillsService skillsService,
     IOrganizationsService organizationsService,
     IUsersService usersService,
     IRecordsService recordsService,
     UserManager <ApplicationUser> userManager)
 {
     this.fightersService      = fightersService;
     this.categoriesService    = categoriesService;
     this.biographiesService   = biographiesService;
     this.skillsService        = skillsService;
     this.organizationsService = organizationsService;
     this.usersService         = usersService;
     this.recordsService       = recordsService;
     this.userManager          = userManager;
 }
Ejemplo n.º 22
0
        public OrganizationsController(
            IOrganizationService organizationService,
            IOrganizationsService organizationsService,
            IStateProvincesService stateProvincesService,
            IOrganizationCategoriesService organizationCategoriesService)
        {
            var currentRequestContext = System.Web.HttpContext.Current.ToRequestContext();

            organizationService.RequestContext = currentRequestContext;
            OrganizationService = organizationService;

            organizationsService.RequestContext = currentRequestContext;
            OrganizationsService = organizationsService;

            stateProvincesService.RequestContext = currentRequestContext;
            StateProvincesService = stateProvincesService;

            organizationCategoriesService.RequestContext = currentRequestContext;
            OrganizationCategoriesService = organizationCategoriesService;
        }
Ejemplo n.º 23
0
        public UsersController(
            IUserService userService,
            IUsersService usersService,
            IOrganizationsService organizationsService,
            IStateProvincesService stateProvincesService)
        {
            var currentRequestContext = System.Web.HttpContext.Current.ToRequestContext();

            userService.RequestContext = currentRequestContext;
            UserService = userService;

            usersService.RequestContext = currentRequestContext;
            UsersService = usersService;

            organizationsService.RequestContext = currentRequestContext;
            OrganizationsService = organizationsService;

            stateProvincesService.RequestContext = currentRequestContext;
            StateProvincesService = stateProvincesService;
        }
Ejemplo n.º 24
0
 public UniversityController(IOrganizationsService organizationsService)
 {
     _organizationsService = organizationsService;
 }
Ejemplo n.º 25
0
 public UtilController(IUtilService utilService, IOrganizationsService organizationsService)
 {
     _utilService          = utilService ?? throw new ArgumentNullException(nameof(utilService));
     _organizationsService = organizationsService ?? throw new ArgumentNullException(nameof(organizationsService));
 }
Ejemplo n.º 26
0
 public JoinOrganizationController(IOrganizationsService organizations, IJoinOrganizationService joinOrganizationRequests)
 {
     this.organizations            = organizations;
     this.joinOrganizationRequests = joinOrganizationRequests;
 }
Ejemplo n.º 27
0
 public ManageInformationController(IOrganizationsService organizations, IOrganizationImagesService organizationImages)
 {
     this.organizations = organizations;
     this.organizationImages = organizationImages;
 }
Ejemplo n.º 28
0
 public HomeController(IOrganizationsService organizations, IUsersService users)
 {
     this.organizations = organizations;
     this.users         = users;
 }
Ejemplo n.º 29
0
 public ManageInformationController(IOrganizationsService organizations, IOrganizationImagesService organizationImages)
 {
     this.organizations      = organizations;
     this.organizationImages = organizationImages;
 }
Ejemplo n.º 30
0
 public HomeController(IOrganizationsService organizations, IUsersService users)
 {
     this.organizations = organizations;
     this.users = users;
 }
Ejemplo n.º 31
0
 public HomeController(ICustomersService customersService, IOrganizationsService organizationsService, UserManager <ApplicationUser> userManager)
 {
     this.customersService     = customersService;
     this.organizationsService = organizationsService;
     this.userManager          = userManager;
 }
 /// <summary>
 /// 初始化组织机构控制器
 /// </summary>
 /// <param name="service">组织机构服务</param>
 public OrganizationsController(IOrganizationsService service)
 {
     OrganizationsService = service;
 }
 public GeneralStatisticViewComponent(IStatisticsService statisticsService, IOrganizationsService organizationsService)
 {
     this.statisticsService    = statisticsService;
     this.organizationsService = organizationsService;
 }
Ejemplo n.º 34
0
 public JoinOrganizationController(IOrganizationsService organizations, IJoinOrganizationService joinOrganizationRequests)
 {
     this.organizations = organizations;
     this.joinOrganizationRequests = joinOrganizationRequests;
 }
 public AllOrganizationsController(IOrganizationsService organizations)
 {
     this.organizations = organizations;
 }
Ejemplo n.º 36
0
 public ProjectsService(CodeHubContext context, IServiceProvider serviceProvider, IOrganizationsService organizationsService) : base(serviceProvider)
 {
     _context = context;
     _organizationsService = organizationsService;
 }
Ejemplo n.º 37
0
 public OrganizationController(IOrganizationsService organizationsServices)
 {
     _organizationsServices = organizationsServices;
 }
Ejemplo n.º 38
0
 public OrganizationsController(IOrganizationsService organizationsService, UserManager <ApplicationUser> userManager)
 {
     this.organizationsService = organizationsService;
     this.userManager          = userManager;
 }
Ejemplo n.º 39
0
 public OrganizationController(IOrganizationsService organizationService)
 {
     _organizationService = organizationService;
 }
 public ManageOrganizationsController(IOrganizationsService organizations)
 {
     this.organizations = organizations;
 }
Ejemplo n.º 41
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomersControllerHelper" /> class.
 /// </summary>
 /// <param name="organizationsService">The organizations service.</param>
 public OrganizationsControllerHelper(IOrganizationsService organizationsService)
 {
     this.organizationsService = organizationsService;
 }