public RoomController(IHubContext <ChatHub> hubContext, IRoomRepository roomRepository, IAccountRepository accountRepository, IUserRepository userRepository, IConnectedRepository userConnectedRepository) { this.hubContext = hubContext; this.roomRepository = roomRepository; this.accountRepository = accountRepository; this.userRepository = userRepository; this.userConnectedRepository = userConnectedRepository; }
public TestOccuranceViewModel(IConnectedRepository repo) { if (DesignerProperties.GetIsInDesignMode( new System.Windows.DependencyObject())) { return; } _repo = repo; BackCommand = new RelayCommand(OnBack); }
public TestListViewModel(IConnectedRepository repo) { if (DesignerProperties.GetIsInDesignMode( new System.Windows.DependencyObject())) { return; } _repo = repo; Tests = new ObservableCollection <SpellTest>(_repo.GetTests()); //CurrentTest = Tests.FirstOrDefault(); }
public ChatHub(IConnectedRepository userConnectedRepository, IAccountRepository accountRepository) { this.userConnectedRepository = userConnectedRepository; this.accountRepository = accountRepository; }