示例#1
0
 public QueueHub(IRepositoryWrapper repo,
                 IQueueService queueService,
                 IManageHubUser hubUser)
 {
     _repo         = repo;
     _queueService = queueService;
     _hubUser      = hubUser;
 }
示例#2
0
 public LogoutModel(SignInManager <IdentityUser> signInManager,
                    ILogger <LogoutModel> logger,
                    IQueueService queueService,
                    IManageHubUser manageHubUser,
                    IQueueHub queueHub)
 {
     _signInManager = signInManager;
     _logger        = logger;
     _queueService  = queueService;
     _manageHubUser = manageHubUser;
     _queueHub      = queueHub;
 }
示例#3
0
 public RoomsController(IQueueService queueService,
                        IRepositoryWrapper repo,
                        IManageHubUser manageHubUser,
                        IMapper mapper,
                        IHubContext <QueueHub> hubContext)
 {
     _queueService  = queueService;
     _repo          = repo;
     _manageHubUser = manageHubUser;
     _mapper        = mapper;
     _hubContext    = hubContext;
     RoomsVM        = new List <RoomsViewModel>();
 }
示例#4
0
        public ManageHubUserTest()
        {
            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new HubUserMappingProfile());
            });

            _mapper = config.CreateMapper();

            var webHostBuilder = new WebHostBuilder()
                                 .UseStartup <TStartup>();

            _server         = new TestServer(webHostBuilder);
            _hubUserContext = _server.Host.Services.GetService(typeof(HubUserContext)) as HubUserContext;
            _manageHubUser  = _server.Host.Services.GetService(typeof(IManageHubUser)) as IManageHubUser;
        }
示例#5
0
        public HubIntegrationTest()
        {
            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new MappingProfile());
            });

            _mapper = config.CreateMapper();

            var webHostBuilder = new WebHostBuilder()
                                 .UseStartup <TStartup>();

            _server  = new TestServer(webHostBuilder);
            _context = _server.Host.Services.GetService(typeof(IRepositoryWrapper)) as IRepositoryWrapper;
            _hubUser = _server.Host.Services.GetService(typeof(IManageHubUser)) as IManageHubUser;

            HubResponse = new QueueHubResponse();
        }
 public IdentityController(SignInManager <IdentityUser> signInManager,
                           CustomUserManager userManager,
                           IQueueHub queueHub,
                           IManageHubUser manageHubUser,
                           IQueueService queueService,
                           IAntiforgery antiforgery,
                           IUserService userService,
                           IEmailSender emailSender)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _queueHub      = queueHub;
     _manageHubUser = manageHubUser;
     _queueService  = queueService;
     _antiforgery   = antiforgery;
     _userService   = userService;
     _emailSender   = emailSender;
 }