public void DefaultSessionIdProviderReturnsNonNegativeId()
        {
            // given
            var provider = new DefaultSessionIdProvider();

            // then
            Assert.That(provider.GetNextSessionId(), Is.GreaterThan(0));
        }
        public void AProviderInitializedWithZeroProvidesMinSessionIdValueAtNextCall()
        {
            //given
            var provider = new DefaultSessionIdProvider(0);

            //when
            var actual = provider.GetNextSessionId();

            //then
            Assert.That(actual, Is.EqualTo(1));
        }
        public void DefaultSessionIdProviderReturnsConsecutiveIds()
        {
            // given
            var provider = new DefaultSessionIdProvider(int.MaxValue / 2);

            // when
            var sessionIdOne = provider.GetNextSessionId();
            var sessionIdTwo = provider.GetNextSessionId();

            // then
            Assert.That(sessionIdTwo, Is.EqualTo(sessionIdOne + 1));
        }