public UserService(SignInManager <FanFictionUser> signInManager, UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper) : base(userManager, context, mapper) { this.SignInManager = signInManager; }
//TODO: maybe move user manager in admin and user service only but leaving it for now! protected BaseService(UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper) { this.UserManager = userManager; this.Context = context; this.Mapper = mapper; }
public void SetUp() { Mapper.Reset(); Mapper.Initialize(x => { x.AddProfile <FanfictionProfile>(); }); var services = SetServices(); this.Provider = services.BuildServiceProvider(); this.Context = this.Provider.GetRequiredService <FanFictionContext>(); SetScoppedServiceProvider(); }
public ApiService(UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper) : base(userManager, context, mapper) { }
public ChapterListViewComponent(FanFictionContext context, IMapper mapper) { this.Context = context; this.Mapper = mapper; }
public LogExceptionActionFilter(FanFictionContext context) { this.Context = context; }
public AdminService(UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper, RoleManager <IdentityRole> roleManager) : base(userManager, context, mapper) { this.RoleManager = roleManager; }
public ChapterService(UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper, INotificationService notificationService) : base(userManager, context, mapper) { this.NotificationService = notificationService; }
public StoryService(INotificationService notificationService, UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper) : base(userManager, context, mapper) { this.NotificationService = notificationService; }