示例#1
0
 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();
        }
示例#4
0
 public ApiService(UserManager <FanFictionUser> userManager, FanFictionContext context, IMapper mapper)
     : base(userManager, context, mapper)
 {
 }
示例#5
0
 public ChapterListViewComponent(FanFictionContext context, IMapper mapper)
 {
     this.Context = context;
     this.Mapper  = mapper;
 }
示例#6
0
 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;
 }
示例#8
0
 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;
 }