Пример #1
0
        public async Task ProcessAsync()
        {
            TestMocks mocks = new TestMocks();

            RsetVerb verb = new RsetVerb();
            await verb.Process(mocks.Connection.Object, new SmtpCommand("RSET")).ConfigureAwait(false);

            mocks.VerifyWriteResponseAsync(StandardSmtpResponseCode.OK);
            mocks.Connection.Verify(c => c.AbortMessage());
        }
Пример #2
0
        public void Process()
        {
            Mocks mocks = new Mocks();

            RsetVerb verb = new RsetVerb();

            verb.Process(mocks.Connection.Object, new SmtpCommand("RSET"));

            mocks.VerifyWriteResponse(StandardSmtpResponseCode.OK);
            mocks.Connection.Verify(c => c.AbortMessage());
        }