﻿namespace Tasker.Test.Core.Provider
{
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Tasker.Core.Provider;

    [TestClass]
    public class NextIdTests
    {
        [TestMethod]
        public void NextId_ShouldReturnIncrementedValue_WhenInvoked()
        {
            var idProvider = new IdProvider();

            var resultOne = idProvider.NextId();
            var resultTwo = idProvider.NextId();

            Assert.AreEqual(1, resultTwo - resultOne);
        }
    }
}
