Exemplo n.º 1
0
        public void Begin_transaction_should_invoke_the_transactionManager()
        {
            var channel            = Substitute.For <ITcpChannel>();
            var transactionManager = Substitute.For <ITransactionManager>();

            var sut = new StompClient(channel, transactionManager);

            sut.BeginTransaction("abc");

            transactionManager.Received().Begin("abc");
        }