コード例 #1
0
        public void DeleteMessage_ValidMessageId_InvokesFakePopClientFactory()
        {
            // arrange
            _emailService = new EmailService(_stubEmailWatcherOptions, _fakePopClientFactory, _messageTranslator);

            // act
            _emailService.DeleteMessage("1");

            // assert
            Assert.IsTrue(_fakePopClientFactory.HasBeenInvoked);
        }
コード例 #2
0
        public void DeleteMessage_NullMessageId_ThrowsException()
        {
            // arrange
            _emailService = new EmailService(_stubEmailWatcherOptions, _fakePopClientFactory, _messageTranslator);

            // act
            _emailService.DeleteMessage(null);

            // assert
        }