public string AddTransaction(IAsyncTransaction transation)
        {
            var key = ProtocolObjectManager.GenerateUniqueIdString();

            Transactions.Add(key, transation);
            return(key);
        }
        public void ShouldCreateMultipleDriverObjectsNoThrow()
        {
            const int count      = 2;
            var       objManager = new ProtocolObjectManager();

            for (int i = 0; i < count; i++)
            {
                ProtocolObjectFactory.ObjManager = objManager;
                var newObject = ProtocolObjectFactory.CreateObject(Protocol.Types.NewDriver);

                newObject.Should().BeOfType <NewDriver>();
                var newDriver = (NewDriver)newObject;
                newDriver.uniqueId.Should().Be(i.ToString());
            }

            objManager.ObjectCount.Should().Be(count);
        }