public void Initialize() { this.hubContextMock = new Mock <IHubContext <NotificationsHub, INotificationsClient> >(); this.loggerMock = new Mock <ILogger <WebNotificationsCarrier> >(); this.mockClients = new Mock <IHubClients <INotificationsClient> >(); this.mockClient = new Mock <INotificationsClient>(); this.userConnectionsReaderMock = new Mock <IUserConnectionsReader>(); this.webCarrier = new WebNotificationsCarrier(this.hubContextMock.Object, this.userConnectionsReaderMock.Object, this.loggerMock.Object); }
public void Ctor_ValidInput() { var carrier = new WebNotificationsCarrier(this.hubContextMock.Object, this.userConnectionsReaderMock.Object, this.loggerMock.Object); Assert.IsTrue(carrier.GetType().FullName.Equals(typeof(WebNotificationsCarrier).FullName, StringComparison.Ordinal)); }