public void GetBlastDeliveryReport_FileTypeXml_RecurrenceWeekly_NoException()
        {
            // Arrange
            InitilizeGetBlastDeliveryReportTests(FileTypeXml, ValueRecurrenceTypeWeekly);
            var message         = new EmailDirect();
            var constructedBody = String.Empty;
            var report          = new TestBlastDeliveryReport(message, constructedBody, _reportSchedule, DateTime.Today);

            // Act
            var returnResult = report.Execute();

            // Assert
            returnResult.ShouldNotBeNull();
            returnResult.success.ShouldBeTrue();
            report.Body.ShouldContain(SuccessfulResultStringGetBlastDeliveryReport);
            _anyException.ShouldBeFalse();
        }
        public void GetBlastDeliveryReport_FileTypeDefault_RecurrenceTypeMonthly_NoData()
        {
            // Arrange
            InitilizeGetBlastDeliveryReportTests(String.Empty, ValueRecurrenceTypeMonthly);
            ShimBlastDelivery.GetStringDateTimeDateTimeBoolean =
                (x1, x2, x3, x4) => new List <BlastDelivery>();
            _testedClass.SetStaticFieldOrProperty(FieldMasterStartDate, new DateTime(2018, 2, 2));
            var message         = new EmailDirect();
            var constructedBody = String.Empty;
            var report          = new TestBlastDeliveryReport(message, constructedBody, _reportSchedule, DateTime.Today);

            // Act
            var returnResult = report.Execute();

            // Assert
            returnResult.ShouldNotBeNull();
            returnResult.success.ShouldBeFalse();
            report.Body.ShouldContain(NoRecordStringGetBlastDeliveryReport);
        }
        public void GetBlastDeliveryReport_FileTypeDefault_RecurrenceDefault_NoReportParameterException()
        {
            // Arrange
            InitilizeGetBlastDeliveryReportTests(String.Empty, String.Empty);
            _reportSchedule = new ECN_Framework_Entities.Communicator.Fakes.ShimReportSchedule
            {
                ReportParametersGet = () => CreateXmlSample(),
                RecurrenceTypeGet   = () => throw new Exception(ExceptionNoReportScheduleParameters)
            };
            var message         = new EmailDirect();
            var constructedBody = String.Empty;
            var report          = new TestBlastDeliveryReport(message, constructedBody, _reportSchedule, DateTime.Today);

            // Act
            var returnResult = report.Execute();

            // Assert
            returnResult.ShouldNotBeNull();
            returnResult.success.ShouldBeFalse();
            report.Body.ShouldContain(FailureMessageForGetBlastDeliveryReport);
            _anyException.ShouldBeTrue();
            _exceptionMessage.ShouldBe(ExceptionNoReportScheduleParameters);
        }