protected async Task SetUp() { context = DbService.NewTestContext(); userService = new UserService(context); channelService = new ChannelService(context); messageService = new MessageService(context); authService = new ChannelAuthService(context); user = await userService.ExistingUser(Lorem); if (user == null) { user = await userService.CreateUser(Lorem, Lorem, Lorem); } channel = await channelService.CreateChannel(Lorem, Lorem, user); packet = JsonConvert.SerializeObject(new MessagePacket { UserCookie = user.CookieId, Channel = channel.Id, Message = Lorem }); }
public ChannelService(ActiveBearContext _context) : base(_context) { }
public CookieService(ActiveBearContext _context) : base(_context) { }
public ChannelController(ActiveBearContext _context) { context = _context; }
public UserService(ActiveBearContext _context) : base(_context) { }
public BaseService(ActiveBearContext _context) { context = _context; }
public UserController(ActiveBearContext _context) { context = _context; cookie = new CookieService(context); userService = new UserService(context); }
public MessageController(ActiveBearContext _context) { context = _context; }
public ChannelAuthController(ActiveBearContext _context) { context = _context; channelAuthService = new ChannelAuthService(context); cookieService = new CookieService(context); }
public MessageService(ActiveBearContext _context) : base(_context) { }