Ejemplo n.º 1
0
 public BaseController(MessageStackContext messageStackContext)
 {
     _accountRepository        = new AccountRepository(messageStackContext);
     _contactRepository        = new ContactRepository(messageStackContext);
     _groupChatRepository      = new GroupChatRepository(messageStackContext);
     _groupMessageRepository   = new GroupMessageRepository(messageStackContext);
     _privateChatRepository    = new PrivateChatRepository(messageStackContext);
     _privateMessageRepository = new PrivateMessageRepository(messageStackContext);
 }
Ejemplo n.º 2
0
 private PrivateChatService CreatePrivateChatService(PrivateChatRepository privateChatRepository)
 {
     return(new PrivateChatService(Guid.NewGuid(), privateChatRepository));
 }