public void CanCreateDefaultTransactionNumberDispatcher()
 {
     Assert.DoesNotThrow(() =>
     {
         _dispatcher = new TransactionNumberDispatcher();
     });
 }
        public void CanGetTransactionNumber()
        {
            _dispatcher = new TransactionNumberDispatcher(10);

            var number     = _dispatcher.GetNextTransactionNumber();
            var nextNumber = _dispatcher.GetNextTransactionNumber();

            Assert.AreEqual(11, number);
            Assert.AreEqual(12, nextNumber);
        }