public ChannelService(IUnitOfWork unitOfWork, IChannelMemberService channelMemberService, IMemberService memberService, CloudStorageConfiguration configuration, IContentStorage contentStorage) : base(unitOfWork) { _channelMemberService = channelMemberService; _memberService = memberService; _configuration = configuration; _contentStorage = contentStorage; }
public MessageNotificationService( IChannelMemberService channelMemberService, IMemberService memberService, IClientService clientService, IHubContext <ChatHub> hubContext, IChannelService channelService) : base(channelMemberService, memberService, clientService, hubContext) { Ensure.That(channelService).IsNotNull(); _channelService = channelService; }
protected BaseNotificationService(IChannelMemberService channelMemberService, IMemberService memberService, IClientService clientService, IHubContext <ChatHub> hubContext) { Ensure.That(channelMemberService).IsNotNull(); Ensure.That(memberService).IsNotNull(); Ensure.That(hubContext).IsNotNull(); Ensure.That(clientService).IsNotNull(); MemberService = memberService; HubContext = hubContext; _channelMemberService = channelMemberService; _clientService = clientService; }
protected ChannelMemberServiceTestsBase() { _sqlConnectionFactoryMock.Setup(x => x.CreateConnection()).Returns(It.IsAny <SqlConnection>()); _unitOfWorkMock = new Mock <UnitOfWork>(_sqlConnectionFactoryMock.Object, new TransactionConfiguration()).As <IUnitOfWork>(); _unitOfWorkMock.CallBase = true; _unitOfWorkMock.Setup(x => x.ChannelRepository).Returns(_channelRepositoryMock.Object); _unitOfWorkMock.Setup(x => x.ChannelMemberRepository).Returns(_channelMemberRepositoryMock.Object); _channelMemberService = new Chat.Domain.Services.DomainServices.ChannelMemberService( _unitOfWorkMock.Object, _domainModelsMapperMock.Object); }
public ChatHub( IChannelService channelService, IMemberService memberService, ILogger logger, IMessageService messageService, IChannelMemberService channelMemberService) { _channelService = channelService; _memberService = memberService; _channelMemberService = channelMemberService; _logger = logger; _channelSocketService = new ChannelSocketService(_channelService, _logger, _memberService, this); _messageSocketService = new MessageSocketService(_channelService, _logger, _memberService, messageService, this); }
public MessageSocketService( IMemberService memberService, IMessageService messageService, IChannelService channelService, IChannelMemberService channelMemberService, IMessageNotificationService messageNotificationService, INotificationSettingsService notificationSettingsService, IPushNotificationService pushNotificationService) { Ensure.That(memberService).IsNotNull(); Ensure.That(messageService).IsNotNull(); Ensure.That(channelService).IsNotNull(); Ensure.That(messageNotificationService).IsNotNull(); _memberService = memberService; _messageService = messageService; _channelService = channelService; _channelMemberService = channelMemberService; _messageNotificationService = messageNotificationService; _notificationSettingsService = notificationSettingsService; _pushNotificationService = pushNotificationService; }
public ChannelNotificationService(IChannelMemberService channelMemberService, IMemberService memberService, IClientService clientService, IHubContext <ChatHub> hubContext) : base(channelMemberService, memberService, clientService, hubContext) { }