private HttpResponseMessage SendGetChannelsRequest(int channelId, IMessagesData data)
        {
            var model = new SearchChannelsBindingModel { ChannelId = channelId };

            var controller = new ChannelsController(data);
            this.SetupController(controller);

            var response = controller.GetChannelById(model)
                .ExecuteAsync(CancellationToken.None).Result;
            return response;
        }
 public ChannelMessagesController(IMessagesData data)
     : base(data)
 {
 }
Ejemplo n.º 3
0
 public ChannelsController(IMessagesData data)
 {
     this.db = data;
 }
Ejemplo n.º 4
0
 public UserMessagesController(IMessagesData data)
 {
     this.db = data;
 }
 public AccountController(IMessagesData data)
 {
     this.db          = data;
     this.userManager = new ApplicationUserManager(data.UserStore);
 }
 /// <inheritdoc />
 public MessageController(IChatsData chatsData, IMessagesData messagesData)
 {
     _chatsData    = chatsData ?? throw new ArgumentNullException(nameof(chatsData));
     _messagesData = messagesData ?? throw new ArgumentNullException(nameof(messagesData));
 }
 public UserMessagesController(IMessagesData data)
 {
     this.db = data;
 }
        //public BaseApiController()
        //    : this(new MessagesDbContext())
        //{
        //}

        //public BaseApiController(MessagesDbContext data)
        //{
        //    this.Data = data;
        //}
        //protected MessagesDbContext Data { get; set; }

        public BaseApiController(IMessagesData data)
        {
            this.Data = data;
        }
 public AccountController(IMessagesData data)
 {
     this.db = data;
     this.userManager = new ApplicationUserManager(data.UserStore);
 }
 public ChannelMessagesController(IMessagesData data)
 {
     this.db = data;
 }
 public UserController(IMessagesData data)
     : base(data)
 {
 }