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); }
private PrivateChatService CreatePrivateChatService(PrivateChatRepository privateChatRepository) { return(new PrivateChatService(Guid.NewGuid(), privateChatRepository)); }