private List <ReportEntities.DataDumpReport> CreateDataDumpReport_btnReport_Click()
        {
            var dataDumpReports = new List <ReportEntities.DataDumpReport>();
            var report1         = new ReportEntities.DataDumpReport();

            report1.EmailSubject    = "EmailSubject1";
            report1.usend           = 100;
            report1.tbounce         = 20;
            report1.Delivery        = 30;
            report1.topen           = 30;
            report1.uopen           = 20;
            report1.tClick          = 10;
            report1.Suppressed      = 5;
            report1.uAbuseRpt_Unsub = 10;
            report1.uFeedBack_Unsub = 20;
            report1.uHardBounce     = 30;
            report1.uMastSup_Unsub  = 40;
            report1.uOtherBounce    = 50;
            report1.uSoftBounce     = 60;
            report1.uSubscribe      = 70;
            report1.trefer          = 80;
            report1.tresend         = 90;
            report1.tbounce         = 90;
            report1.ClickThrough    = 100;
            var report2 = new ReportEntities.DataDumpReport();

            report2.EmailSubject    = "EmailSubject2";
            report2.usend           = -100;
            report2.tbounce         = 20;
            report2.Delivery        = -30;
            report2.topen           = -30;
            report2.uopen           = -20;
            report2.tClick          = 10;
            report2.Suppressed      = 5;
            report2.uAbuseRpt_Unsub = 10;
            report2.uFeedBack_Unsub = 20;
            report2.uHardBounce     = 30;
            report2.uMastSup_Unsub  = 40;
            report2.uOtherBounce    = 50;
            report2.uSoftBounce     = 60;
            report2.uSubscribe      = 70;
            report2.trefer          = 80;
            report2.tresend         = 90;
            report2.tbounce         = 90;
            report2.ClickThrough    = 100;
            dataDumpReports.Add(report1);
            dataDumpReports.Add(report2);
            return(dataDumpReports);
        }
        private void InitilizeGetDataDumpReportTests(string fileType, string recurrenceType, int delivery = 0, int topen = 0, int usend = 0)
        {
            _reportSchedule = new ECN_Framework_Entities.Communicator.Fakes.ShimReportSchedule
            {
                CustomerIDGet       = () => ValueInt1,
                ReportParametersGet = () =>
                {
                    var sampleXMLDoc          = new XmlDocument();
                    var reportScheduleElement = sampleXMLDoc.CreateElement(XMLKeyReportSchedule);
                    sampleXMLDoc.AppendChild(reportScheduleElement);
                    var sampleElement = sampleXMLDoc.CreateElement(XMLKeyGroupIDs);
                    sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1));
                    reportScheduleElement.AppendChild(sampleElement);
                    sampleElement = sampleXMLDoc.CreateElement(XMLKeyFTPURL);
                    sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText));
                    reportScheduleElement.AppendChild(sampleElement);
                    sampleElement = sampleXMLDoc.CreateElement(XMLKeyCustomerID);
                    sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1));
                    reportScheduleElement.AppendChild(sampleElement);
                    sampleElement = sampleXMLDoc.CreateElement(XMLKeyFTPUsername);
                    sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText));
                    reportScheduleElement.AppendChild(sampleElement);
                    sampleElement = sampleXMLDoc.CreateElement(XMLKeyFTPPassword);
                    sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText));
                    reportScheduleElement.AppendChild(sampleElement);

                    return(sampleXMLDoc.InnerXml);
                },
                ExportFormatGet   = () => fileType,
                RecurrenceTypeGet = () => recurrenceType,
                CreatedUserIDGet  = () => ValueInt1
            };

            ShimDirectory.ExistsString          = (p) => false;
            ShimDirectory.CreateDirectoryString = (p) => null;
            ShimFile.ExistsString                 = (p) => true;
            ShimFile.DeleteString                 = (p) => { };
            ShimFile.ReadAllBytesString           = (p) => { return(new byte[0]); };
            ShimFile.WriteAllBytesStringByteArray = (x1, x2) => { };
            ShimFile.WriteAllTextStringString     = (x1, x2) => { };

            ShimDataDumpReport.GetListInt32DateTimeDateTimeString = (x1, x2, x3, x4) =>
            {
                var reportList = new List <DataDumpReport>();
                var dataReport = new DataDumpReport();
                dataReport.EmailSubject = DummyText;
                dataReport.Delivery     = delivery;
                dataReport.usend        = usend;
                dataReport.topen        = topen;
                dataReport.uopen        = topen;
                reportList.Add(dataReport);
                return(reportList);
            };

            ShimUser.GetByUserIDInt32Boolean = (x1, x2) => null;
            ShimWebRequest.CreateString      = (p) =>
            {
                return(new ShimFtpWebRequest
                {
                    GetRequestStream = () =>
                    {
                        return (Stream) new ShimFileStream
                        {
                            WriteByteArrayInt32Int32 = (x1, x2, x3) => { }
                        };
                    },
                    GetResponse = () =>
                    {
                        return new ShimFtpWebResponse
                        {
                            StatusDescriptionGet = () => DummyText
                        };
                    }
                });
            };

            _testedClass.SetStaticFieldOrProperty(FieldMasterStartDate, new DateTime(2018, 1, 1));
        }