Exemple #1
0
        public void AbortMessage()
        {
            Mocks mocks = new Mocks();

            Connection connection = new Connection(mocks.Server.Object, mocks.ConnectionChannel.Object, mocks.VerbMap.Object);

            connection.NewMessage();

            connection.AbortMessage();
            Assert.Null(connection.CurrentMessage);
        }
        public async Task AbortMessage()
        {
            TestMocks mocks = new TestMocks();

            Connection connection = await Connection.Create(mocks.Server.Object, mocks.ConnectionChannel.Object, mocks.VerbMap.Object).ConfigureAwait(false);

            await connection.NewMessage().ConfigureAwait(false);

            await connection.AbortMessage().ConfigureAwait(false);

            Assert.Null(connection.CurrentMessage);
        }
Exemple #3
0
        public void AbortMessage()
        {
            Mocks mocks = new Mocks();

            Connection connection = new Connection(mocks.Server.Object, mocks.ConnectionChannel.Object, mocks.VerbMap.Object);
            connection.NewMessage();

            connection.AbortMessage();
            Assert.Null(connection.CurrentMessage);
        }