Example #1
0
        public void IfLoggingIsEnabled_Poll_LogsAtLeastOneMessage()
        {
            var isAtLeastOneMessageLogged = false;

            _logger.LogAvailable += (sender, args) => { isAtLeastOneMessageLogged = true; };

            _easyMwsClient.Poll();

            Assert.True(isAtLeastOneMessageLogged);
        }
Example #2
0
        public void IfLoggingIsDisabled_Poll_DoesNotLogAMessage()
        {
            _easyMwsClient = new EasyMwsClient(AmazonRegion.Europe, "test", "test", "test", "test", null, new EasyMwsOptions());
            var isAtLeastOneMessageLogged = false;

            _logger.LogAvailable += (sender, args) => { isAtLeastOneMessageLogged = true; };

            _easyMwsClient.Poll();

            Assert.IsFalse(isAtLeastOneMessageLogged);
        }
Example #3
0
        public void Poll_CallsReportProcessorPollMethod_Once()
        {
            _easyMwsClient.Poll();

            _reportProcessorMock.Verify(rpm => rpm.PollReports(It.IsAny <IReportRequestEntryService>()), Times.Once);
        }