Пример #1
0
 public AccountController(ILogger <AccountController> logger, IConfiguration config, IDeveloperService developerService, ITokenService tokenService, IMapper mapper) : base(logger, config)
 {
     _mapper           = mapper;
     _developerService = developerService;
     _tokenService     = tokenService;
     _config           = config;
 }
 public DeveloperServiceTests()
 {
     _developerService = new DeveloperService(
         new Repository(_dbContext),
         new DataAnnotationValidator()
         );
 }
 public VideoGameService(IVideoGameRepository videoGameRepo, IPlateform_VideoGameService plateform_VideoGameService, IDeveloperService developerService, IPublisherService publisherService)
 {
     _videoGameRepo = videoGameRepo;
     _plateform_VideoGameService = plateform_VideoGameService;
     _developerService           = developerService;
     _publisherService           = publisherService;
 }
Пример #4
0
 public GamesController(IGameService gameService, IDeveloperService developerService, IGenreService genreService, IMapper mapper, DbContext context)
 {
     this.gameService      = gameService;
     this.developerService = developerService;
     this.genreService     = genreService;
     this.mapper           = mapper;
     this.context          = context;
 }
Пример #5
0
 private void CreateDeveloperService()
 {
     if (_developerService == null)
     {
         var userId = Guid.Parse(User.Identity.GetUserId());
         _developerService = new DeveloperService(userId);
     }
 }
 public ProjectController(IProjectService projectService, ISuperVisorService superVisor
                          , IDeveloperService developerService
                          , IHostingEnvironment HostingEnvironment)
 {
     _projectService    = projectService;
     _superVisor        = superVisor;
     _developerService  = developerService;
     hostingEnvironment = HostingEnvironment;
 }
Пример #7
0
 public DeveloperController(
     IDeveloperService developerService,
     ILogger <DeveloperController> logger,
     ICurrentUserService currentUserService
     )
 {
     _developerService   = developerService;
     _logger             = logger;
     _currentUserService = currentUserService;
 }
Пример #8
0
 public DevelopersController(IProjectService projectService,
                             IDeveloperService developerService,
                             UserManager <UserEntity> userManager,
                             ILogger <DevelopersController> logger)
 {
     this._projectService   = projectService;
     this._developerService = developerService;
     this._userManager      = userManager;
     this._logger           = logger;
 }
Пример #9
0
        async void ReadSessions()
        {
            IDeveloperService proxy = factory.CreateChannel();

            string x = await proxy.GetSessionAsync();

            string y = await proxy.GetRealSessionAsync();

            ((IClientChannel)proxy).Close();
        }
Пример #10
0
 public GamesController(IGameService gameService,
                        IPublisherService publisherService,
                        IDeveloperService developerService,
                        IFileService service)
 {
     _gameService      = gameService;
     _publisherService = publisherService;
     _developerService = developerService;
     _fileService      = service;
 }
Пример #11
0
 public GamesService(IBusinessLogicGames businessLogicGames, IBusinessLogicDevelopers businessLogicDevelopers, IBusinessLogicPublisher businessLogicPublisher, ICommonService commonService, IDeveloperService developerService, IPublisherService publisherService, IMapper mapper)
 {
     _businessLogicGames      = businessLogicGames;
     _businessLogicDevelopers = businessLogicDevelopers;
     _businessLogicPublisher  = businessLogicPublisher;
     _commonService           = commonService;
     _developerService        = developerService;
     _publisherService        = publisherService;
     _mapper = mapper;
 }
Пример #12
0
 public SoftwareController(ISoftwareService powerSupplyService, IWebHostEnvironment hostEnvironment, IPublisherService publisherService, IDeveloperService developerService, ICPUService cpuService, IVideoCardService videoCardService, IComputerAssemblyService computerAssemblyService, IUserService userService)
 {
     _softwareService         = powerSupplyService;
     _webHostEnvironment      = hostEnvironment;
     _publisherService        = publisherService;
     _developerService        = developerService;
     _cpuService              = cpuService;
     _videoCardService        = videoCardService;
     _computerAssemblyService = computerAssemblyService;
     _userService             = userService;
 }
        public DevelopersViewModel(IDeveloperService developerService, IPageDialogService pageDialogService, INavigationService navigationService)
        {
            _developerService  = developerService;
            _pageDialogService = pageDialogService;
            _navigationService = navigationService;
            BackCommand        = new DelegateCommand(BackAsync);
            AddCommand         = new DelegateCommand(AddAsync);

            var list = Task.Run(() => ListAsync());

            Developers = new List <DeveloperApiModel>(list.Result.ToList());
        }
Пример #14
0
        public IHttpActionResult Create([FromBody] DeveloperCreateModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _developerService = new DeveloperService();

            _developerService.CreateDeveloper(model);

            return(Ok());
        }
Пример #15
0
        public IHttpActionResult Update([FromUri] int id, [FromBody] DeveloperUpdateModel game)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _developerService = new DeveloperService();

            _developerService.UpdateDeveloper(id, game);

            return(Ok());
        }
Пример #16
0
 public CandidateController(INotificationHandler <DomainNotification> notifications,
                            IPeopleService peopleService, IBestWorkTimeService bwtService,
                            IOccupationService occupationService, IWorkAvailabilityService waService,
                            IDesignerService designerService, IDeveloperService developerService,
                            IKnowledgeService knowledgeService) : base(notifications)
 {
     this.peopleService     = peopleService;
     this.bwtService        = bwtService;
     this.waService         = waService;
     this.occupationService = occupationService;
     this.designerService   = designerService;
     this.developerService  = developerService;
     this.knowledgeService  = knowledgeService;
 }
Пример #17
0
        async void SetSessions()
        {
            IDeveloperService proxy = factory.CreateChannel();

            try
            {
                await proxy.SetRealSessionAsync("kos baghali");

                await proxy.SetSessionAsync("kos choghandar");
            }
            catch (FaultException <SessionFault> sf)
            {
                string message   = sf.Detail.SessionMessage;
                string opertaion = sf.Detail.SessionOperation;
                string reson     = sf.Detail.SessionReason;
            }
            ((IClientChannel)proxy).Close();
        }
Пример #18
0
 public GamesController(IGameService gameService,
                        IGenreService genreService,
                        IDeveloperService developerService,
                        IPublisherService publisherService,
                        IPlatformService platformService,
                        IReviewService reviewService,
                        IUserService userService,
                        IWebHostEnvironment hostingEnv,
                        UserManager <User> userManager)
 {
     this.gameService      = gameService;
     this.genreService     = genreService;
     this.developerService = developerService;
     this.publisherService = publisherService;
     this.platformService  = platformService;
     this.reviewService    = reviewService;
     this.userService      = userService;
     this.hostingEnv       = hostingEnv;
     this.userManager      = userManager;
 }
Пример #19
0
        public DemoServiceLocatorMaster(UserContext context)
            : base(context)
        {
            userService   = new DemoUserService(this);
            schoolService = new DemoSchoolService(this);
            chalkableDepartmentService = new DemoChalkableDepartmentService(this);
            categoryService            = new DemoCategoryService(this);
            developerService           = new DemoDeveloperService(this);
            districtService            = new DemoDistrictService(this);
            emailService             = new DemoEmailService(this);
            backgroundTaskService    = new DemoBackgroundTaskService(this);
            applicationService       = new DemoApplicationService(this);
            applicationUploadService = new DemoApplicationUploadService(this);

            preferenceService         = new PreferenceService(this);
            personPictureService      = new PersonPictureService(this);
            departmentIconService     = new DepartmentIconService(this);
            applicationPictureService = new ApplicationPictureService(this);
            dbService           = new DbService(Context != null ? Context.MasterConnectionString : null);
            userTrackingService = new NullTrackingService();
        }
Пример #20
0
 public ServiceLocatorMaster(UserContext context) : base(context)
 {
     userService                     = new UserService(this);
     schoolService                   = new SchoolService(this);
     backgroundTaskService           = new BackgroundTaskService(this);
     preferenceService               = new PreferenceService(this);
     chalkableDepartmentService      = new ChalkableDepartmentService(this);
     personPictureService            = new PersonPictureService(this);
     departmentIconService           = new DepartmentIconService(this);
     customReportTemplateIconService = new CustomReportTemplateIconService(this);
     districtService                 = new DistrictService(this);
     applicationService              = new ApplicationService(this);
     categoryService                 = new CategoryService(this);
     applicationUploadService        = new ApplicationUploadService(this);
     EmailService                    = new EmailService(this);
     developerService                = new DeveloperService(this);
     applicationPictureService       = new ApplicationPictureService(this);
     DbService                   = new DbService(Context?.MasterConnectionString);
     userTrackingService         = new MixPanelService(Settings.MixPanelToken);
     dbMaintenanceService        = new DbMaintenanceService(this);
     academicBenchmarkService    = new AcademicBenchmarkService(this);
     customReportTemplateService = new CustomReportTemplateService(this);
 }
Пример #21
0
 public DeveloperController(INotificationHandler <DomainNotification> notifications, IDeveloperService developerService) : base(notifications)
 {
     this.developerService = developerService;
 }
Пример #22
0
 public DeveloperController(IDeveloperService service, IUserService user)
 {
     _service = service;
     _user    = user;
 }
Пример #23
0
 public MethodService(IDeveloperService theDeveloperService)
 {
     developerService = theDeveloperService;
 }
 public DevelopersController(IDeveloperService developerService, VideoGamerDbContext context)
 {
     _developerService = developerService;
     _context          = context;
 }
Пример #25
0
 public IHttpActionResult List()
 {
     _developerService = new DeveloperService();
     return(Ok(_developerService.GetDevelopers()));
 }
Пример #26
0
 public ManageController(IDeveloperService service)
 {
     _service = service;
 }
Пример #27
0
 public DevelopersController(IDeveloperService developerService, IMapper mapper)
 {
     DeveloperService = developerService;
     Mapper           = mapper;
 }
Пример #28
0
 public DeveloperController(IDeveloperService developerService, ICountryService countryService)
 {
     _developerService = developerService;
     _countryService   = countryService;
 }
Пример #29
0
 public IHttpActionResult Delete([FromUri] int id)
 {
     _developerService = new DeveloperService();
     _developerService.DeleteDeveloper(id);
     return(Ok());
 }
Пример #30
0
 public DevelopersController(IDeveloperService developerService)
 {
     _developerService = developerService;
 }
Пример #31
0
 public DeveloperController(IDeveloperService developerService)
 {
     this.developerService = developerService;
 }
Пример #32
0
 public IHttpActionResult Get([FromUri] int id)
 {
     _developerService = new DeveloperService();
     return(Ok(_developerService.GetDeveloper(id)));
 }