public CreateMessagesTests() { var testsData = TestsData.Create(nameof(CreateMessagesTests)); createMessagesService = testsData.AppServiceProvider.CreateMessagesService; fillTestDbHelper = testsData.FillTestDbHelper; loadMessagesService = testsData.AppServiceProvider.LoadMessagesService; }
public ChangeNodeOperationsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory) { createChatsService = appServiceProvider.CreateChatsService; createMessagesService = appServiceProvider.CreateMessagesService; updateUsersService = appServiceProvider.UpdateUsersService; createChannelsService = appServiceProvider.CreateChannelsService; contactsService = appServiceProvider.ContactsService; groupsService = appServiceProvider.GroupsService; favoritesService = appServiceProvider.FavoritesService; this.contextFactory = contextFactory; }
public AttachmentsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory) { _createMessagesService = appServiceProvider.CreateMessagesService; _loadMessagesService = appServiceProvider.LoadMessagesService; _loadDialogsService = appServiceProvider.LoadDialogsService; _filesService = appServiceProvider.FilesService; _pollsService = appServiceProvider.PollsService; _nodeRequestSender = appServiceProvider.NodeRequestSender; _loadChatsService = appServiceProvider.LoadChatsService; _loadUsersService = appServiceProvider.LoadUsersService; _connectionsService = appServiceProvider.ConnectionsService; this.contextFactory = contextFactory; }
public SendMessagesRequestHandler( Request request, ClientConnection current, INodeNoticeService nodeNoticeService, IConversationsNoticeService conversationsNoticeService, IAttachmentsService attachmentsService, ICreateMessagesService createMessagesService, ILoadDialogsService loadDialogsService) { this.request = (SendMessagesRequest)request; userId = current.UserId ?? 0; this.current = current; this.nodeNoticeService = nodeNoticeService; this.conversationsNoticeService = conversationsNoticeService; this.attachmentsService = attachmentsService; this.createMessagesService = createMessagesService; this.loadDialogsService = loadDialogsService; }
public GetMessagesRequestHandler(Request request, ClientConnection clientConnection, IConnectionsService connectionsService, ILoadMessagesService loadMessagesService, ICreateMessagesService createMessagesService, IAttachmentsService attachmentsService, ILoadChatsService loadChatsService, IConversationsService conversationsService, INodeRequestSender nodeRequestSender) { this.request = (GetMessagesRequest)request; this.clientConnection = clientConnection; this.connectionsService = connectionsService; this.loadMessagesService = loadMessagesService; this.createMessagesService = createMessagesService; this.attachmentsService = attachmentsService; this.loadChatsService = loadChatsService; this.conversationsService = conversationsService; this.nodeRequestSender = nodeRequestSender; }
public NewMessagesNoticeHandler(CommunicationObject @object, NodeConnection current, IConversationsNoticeService conversationsNoticeService, IAttachmentsService attachmentsService, ICreateMessagesService createMessagesService, ICreateChannelsService createChannelsService, INodeRequestSender nodeRequestSender, ICrossNodeService crossNodeService, ILoadDialogsService loadDialogsService) { notice = (NewMessagesNodeNotice)@object; this.current = current; this.conversationsNoticeService = conversationsNoticeService; this.attachmentsService = attachmentsService; this.createMessagesService = createMessagesService; this.createChannelsService = createChannelsService; this.nodeRequestSender = nodeRequestSender; this.crossNodeService = crossNodeService; this.loadDialogsService = loadDialogsService; }
public UpdateChatsService(IAppServiceProvider appServiceProvider, IDbContextFactory <MessengerDbContext> contextFactory) { createMessagesService = appServiceProvider.CreateMessagesService; loadUsersService = appServiceProvider.LoadUsersService; this.contextFactory = contextFactory; }