public UserProfileController(IUserManager <GearUser> userManager, IIdentityContext identityContext, IProfileContext profileContext, ICountryService countryService) { _userManager = userManager; _identityContext = identityContext; _profileContext = profileContext; _countryService = countryService; }
public void Setup() { NewScope(); _controller = Kernel.Get <ReviewController>(); NewScope(); _context = Kernel.Get <IProfileContext>(); }
/// <summary> /// Constructor of profile service. /// </summary> /// <param name="profileContext">Profile context.</param> /// <param name="mapper">Automapper.</param> /// <param name="logger">Logging service.</param> public ProfileService(IProfileContext profileContext, IMapper mapper, ILogger logger) { _profileContext = profileContext ?? throw new ArgumentNullException(nameof(profileContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public void Setup() { NewScope(); _context = Kernel.Get <IProfileContext>(); NewScope(); _controller = Kernel.Get <ProjectController>(); _projectProvider = Kernel.Get <IProjectProvider>(); _projectMapper = Kernel.Get <ProjectMapper>(); }
/// <summary> /// Seed application context. /// </summary> /// <param name="context">Application context.</param> public static async Task SeedAsync(IProfileContext context) { if (!context.Profiles.Any()) { await context.Profiles.AddRangeAsync(GetPreconfiguredProfileModels()); await context.SaveChangesAsync(new CancellationToken()); } }
/// <summary> /// Constructor of profile service. /// </summary> /// <param name="profileContext">Profile context.</param> /// <param name="mapper">Automapper.</param> /// <param name="logger">Logging service.</param> /// <param name="userDeletedEventProducer">Producer of the "user deleted" events.</param> public ProfileService(IProfileContext profileContext, IMapper mapper, ILogger logger, IEventProducer <IUserDeleted, IUserDTO> userDeletedEventProducer) { _profileContext = profileContext ?? throw new ArgumentNullException(nameof(profileContext)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _userDeletedEventProducer = userDeletedEventProducer ?? throw new ArgumentNullException(nameof(userDeletedEventProducer)); }
public void Setup() { NewScope(); var traineeProvider = Kernel.Get <ITraineeProvider>(); var projectProvider = Kernel.Get <IProjectProvider>(); var wordTranformer = Kernel.Get <WordTransformer>(); var fakeFactory = new FakeUserFactory(); _controller = new HomeController( traineeProvider, projectProvider, wordTranformer, fakeFactory); NewScope(); _context = Kernel.Get <IProfileContext>(); }
public void Setup() { NewScope(); _context = Kernel.Get <IProfileContext>(); }
public LanguageProvider(IProfileContext profileContext) { _context = profileContext; }
public SpecializationComparerTest() { _context = Kernel.Get <IProfileContext>(); }
public JiraProvider(IJiraClient client, ITraineeProvider traineeProvider, IProfileContext context) { _client = client; _context = context; _traineeProvider = traineeProvider; }
public UserRepository(IProfileContext profileContext) { //ProfileContext profileContext _profileContext = profileContext; }
public ProfileService(IProfileContext context, IMapper mapper, IProducer producer) { _context = context; _mapper = mapper; _producer = producer; }
public PermissionStore(IProfileContext context) { _context = context; }
public void Setup() { profileContext = Substitute.For <IProfileContext>(); sut = new ProfilesController(profileContext); }
public FakeUsersProvider(IProfileContext profileContext, UserManager userManager) : base(profileContext, userManager) { }
public UsersProvider(IProfileContext profileContext, UserManager userManager) { _context = profileContext; _userManager = userManager; Logger.Debug("Creating instance of provider"); }
public UserAddressService(IProfileContext context, IUserManager <GearUser> userManager, IMapper mapper) { _context = context; _userManager = userManager; _mapper = mapper; }
public UniversityProvider(IProfileContext profileContext) { _context = profileContext; }
public SpecializationProvider(IProfileContext context) { _context = context; }
public MentorReviewProvider(IProfileContext profileContext) { _context = profileContext; }
public CreateUserHandler(IProfileContext context, IMapper mapper, IProducer producer) { _context = context; _mapper = mapper; _producer = producer; }
public MentorProvider(IProfileContext context) { _context = context; }
public TraineeReviewProvider(IProfileContext context) { _context = context; }
public GroupProvider(IProfileContext context) { _context = context; }
public ProfileProvider(IProfileContext profileContext) { _context = profileContext; Logger.Debug("Creating instance of provider"); }
public ScrumReviewProvider(IProfileContext profileContext) { _context = profileContext; }
public ProjectProvider(IProfileContext context) { _context = context; }
public IdentityDeleteCommandHandler(IIdentityRepository identityRepository, IStringLocalizer <CommonTranslation> localizer, IProfileContext profileContext) { this.identityRepository = identityRepository; this.localizer = localizer; this.profileContext = profileContext; }
public FileProvider(IProfileContext profileContext) { _context = profileContext; }