BrakePedal.Tests.MemoryThrottleRepositoryTests.AddOrIncrementWithExpirationMethod.ThrottleCountReturnsNullWhenUsingInvalidKey C# (CSharp) Method

ThrottleCountReturnsNullWhenUsingInvalidKey() private method

private ThrottleCountReturnsNullWhenUsingInvalidKey ( ) : void
return void
            public void ThrottleCountReturnsNullWhenUsingInvalidKey()
            {
                // Arrange
                var key = new SimpleThrottleKey("test", "key");
                var limiter = new Limiter()
                    .Limit(1)
                    .Over(100);
                var cache = new MemoryCache("testing_cache");
                var repository = new MemoryThrottleRepository(cache);

                // Act
                var count = repository.GetThrottleCount(key, limiter);

                // Assert
                Assert.Equal(count, null);
            }