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; }
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; }
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; }
public DeveloperController( IDeveloperService developerService, ILogger <DeveloperController> logger, ICurrentUserService currentUserService ) { _developerService = developerService; _logger = logger; _currentUserService = currentUserService; }
public DevelopersController(IProjectService projectService, IDeveloperService developerService, UserManager <UserEntity> userManager, ILogger <DevelopersController> logger) { this._projectService = projectService; this._developerService = developerService; this._userManager = userManager; this._logger = logger; }
async void ReadSessions() { IDeveloperService proxy = factory.CreateChannel(); string x = await proxy.GetSessionAsync(); string y = await proxy.GetRealSessionAsync(); ((IClientChannel)proxy).Close(); }
public GamesController(IGameService gameService, IPublisherService publisherService, IDeveloperService developerService, IFileService service) { _gameService = gameService; _publisherService = publisherService; _developerService = developerService; _fileService = service; }
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; }
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()); }
public IHttpActionResult Create([FromBody] DeveloperCreateModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _developerService = new DeveloperService(); _developerService.CreateDeveloper(model); return(Ok()); }
public IHttpActionResult Update([FromUri] int id, [FromBody] DeveloperUpdateModel game) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _developerService = new DeveloperService(); _developerService.UpdateDeveloper(id, game); return(Ok()); }
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; }
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(); }
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; }
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(); }
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); }
public DeveloperController(INotificationHandler <DomainNotification> notifications, IDeveloperService developerService) : base(notifications) { this.developerService = developerService; }
public DeveloperController(IDeveloperService service, IUserService user) { _service = service; _user = user; }
public MethodService(IDeveloperService theDeveloperService) { developerService = theDeveloperService; }
public DevelopersController(IDeveloperService developerService, VideoGamerDbContext context) { _developerService = developerService; _context = context; }
public IHttpActionResult List() { _developerService = new DeveloperService(); return(Ok(_developerService.GetDevelopers())); }
public ManageController(IDeveloperService service) { _service = service; }
public DevelopersController(IDeveloperService developerService, IMapper mapper) { DeveloperService = developerService; Mapper = mapper; }
public DeveloperController(IDeveloperService developerService, ICountryService countryService) { _developerService = developerService; _countryService = countryService; }
public IHttpActionResult Delete([FromUri] int id) { _developerService = new DeveloperService(); _developerService.DeleteDeveloper(id); return(Ok()); }
public DevelopersController(IDeveloperService developerService) { _developerService = developerService; }
public DeveloperController(IDeveloperService developerService) { this.developerService = developerService; }
public IHttpActionResult Get([FromUri] int id) { _developerService = new DeveloperService(); return(Ok(_developerService.GetDeveloper(id))); }