public void IfLoggingIsEnabled_Poll_LogsAtLeastOneMessage() { var isAtLeastOneMessageLogged = false; _logger.LogAvailable += (sender, args) => { isAtLeastOneMessageLogged = true; }; _easyMwsClient.Poll(); Assert.True(isAtLeastOneMessageLogged); }
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); }
public void Poll_CallsReportProcessorPollMethod_Once() { _easyMwsClient.Poll(); _reportProcessorMock.Verify(rpm => rpm.PollReports(It.IsAny <IReportRequestEntryService>()), Times.Once); }