getAddress.Sequence.Tests.Tests.NextAsyncReturnsExpectedValue C# (CSharp) Method

NextAsyncReturnsExpectedValue() private method

private NextAsyncReturnsExpectedValue ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task NextAsyncReturnsExpectedValue()
        {

            var stateProvider = GetStateProvider();

            var sequenceGenerator = new SequenceGenerator(stateProvider);

            var sequence = await CreateSequence(stateProvider);

            var sequenceKey = await  stateProvider.AddAsync(sequence);

            var nextValue1 = await sequenceGenerator.NextAsync(sequenceKey);

            var nextValue2 = await sequenceGenerator.NextAsync(sequenceKey);

            Assert.IsTrue(nextValue1 == 1);

            Assert.IsTrue(nextValue2 == 2);
        }