public void SetupTests() { userLanguageService = new UserLanguageService(mockContext.Object, new Tete.Models.Authentication.UserVM() { Roles = { "Admin" } }); }
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; }
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); }