예제 #1
0
 public void SetupTests()
 {
     userLanguageService = new UserLanguageService(mockContext.Object, new Tete.Models.Authentication.UserVM()
     {
         Roles = { "Admin" }
     });
 }
예제 #2
0
 public UserController(UserInfoService service, UserManager <IdentityUser> userManager, UserExperienceService userExperienceService, UserLanguageService userLanguageService, UserEducationService userEducationService, UserCertificationService userCertificationService, JobAdvertService jobAdvertService)
 {
     _service                  = service;
     _userManager              = userManager;
     _userExperienceService    = userExperienceService;
     _userLanguageService      = userLanguageService;
     _userEducationService     = userEducationService;
     _userCertificationService = userCertificationService;
     _jobAdvertService         = jobAdvertService;
 }
예제 #3
0
 private void FillData(MainContext mainContext, UserVM actor)
 {
     this.mainContext         = mainContext;
     this.Actor               = actor;
     this.userLanguageService = new UserLanguageService(mainContext, actor);
 }
        private void DeserializeHeader()
        {
            var userLanguageService = new UserLanguageService(null, ".cookie_name", _availableLanguages);

            _deserializedHeaderLanguage = userLanguageService.GetAcceptLanguageFromHeaderOrNull(_acceptLanguageHeader);
        }