public void Ctor_ValidInput() { this.SetupBase(); var userTracker = new UserConnectionCacheTracker(this.distributedCacheMock.Object, this.loggerMock.Object); Assert.IsInstanceOf <UserConnectionCacheTracker>(userTracker); }
/// <summary> /// Setups the base. /// </summary> public void SetupBase() { this.loggerMock = new Mock <ILogger <UserConnectionTracker> >(); this.distributedCacheMock = new Mock <IDistributedCache>(); this.userConnectionCacheTracker = new UserConnectionCacheTracker(this.distributedCacheMock.Object, this.loggerMock.Object); }