private void InitilizeGetBlastDeliveryReportTests(string fileFormat, string recurrenceType) { ShimDirectory.ExistsString = (p) => false; ShimDirectory.CreateDirectoryString = (p) => null; ShimFile.ExistsString = (p) => true; ShimFile.DeleteString = (p) => { }; ShimFile.AppendAllTextStringString = (x1, x2) => { }; ShimCustomer.GetByCustomerIDInt32Boolean = (x1, x2) => null; _reportSchedule = new ECN_Framework_Entities.Communicator.Fakes.ShimReportSchedule { CustomerIDGet = () => ValueInt1, ReportParametersGet = () => CreateXmlSample(), ExportFormatGet = () => fileFormat, RecurrenceTypeGet = () => recurrenceType }; ShimBlastDelivery.GetStringDateTimeDateTimeBoolean = (x1, x2, x3, x4) => new List <BlastDelivery>() { new BlastDelivery { EmailSubject = DummyText, Delivered = ValueInt1 } }; ShimAttachment.ConstructorString = (x1, x2) => { }; ShimFileInfo.AllInstances.AppendText = (p) => new ShimStreamWriter(); ShimXmlSerializer.AllInstances.SerializeTextWriterObject = (x1, x2, x3) => { }; }
private void FakeReportSchedule(string fileType, string recurrenceType) { _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(XMLSearchBy); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyFTPURL); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLSearchText); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText)); 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 }; }
private void InitilizeGetGroupStatisticsReportTests(string fileFormat, string recurrenceType, string showBroweserDetails) { ShimDirectory.ExistsString = (p) => false; ShimDirectory.CreateDirectoryString = (p) => null; ShimFile.ExistsString = (p) => true; ShimFile.DeleteString = (p) => { }; ShimFile.AppendAllTextStringString = (x1, x2) => { }; ShimUser.GetByAccessKeyStringBoolean = (x1, x2) => null; _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(XMLKeyGroupID); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyShowBroswerDetails); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(showBroweserDetails)); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, RecurrenceTypeGet = () => recurrenceType, }; ShimGroupStatisticsReport.GetInt32DateTimeDateTime = (x1, x2, x3) => new List <GroupStatisticsReport>() { new GroupStatisticsReport { EmailSubject = DummyText } }; ShimGroupStatisticsReport.GetReportDetailsListOfGroupStatisticsReportBoolean = (x1, x2) => new List <GroupStatisticsReport>(); ShimGroup.GetByGroupID_NoAccessCheckInt32 = (p) => new Group(); ShimAttachment.ConstructorString = (x1, x2) => { }; ShimFileInfo.AllInstances.AppendText = (p) => new ShimStreamWriter(); ShimXmlSerializer.AllInstances.SerializeTextWriterObject = (x1, x2, x3) => { }; }
private void InitilizeGetAudienceEngagementReportTests(string fileFormat, string recurrenceType) { ShimDirectory.ExistsString = (p) => false; ShimDirectory.CreateDirectoryString = (p) => null; ShimFile.ExistsString = (p) => true; ShimFile.DeleteString = (p) => { }; ShimFile.AppendAllTextStringString = (x1, x2) => { }; ShimUser.GetByUserIDInt32Boolean = (x1, x2) => null; _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(XMLKeyGroupID); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyClickPercentage); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1)); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, RecurrenceTypeGet = () => recurrenceType, }; ShimAudienceEngagementReport.GetListByRangeInt32Int32StringStringDateTimeDateTime = (x1, x2, x, x3, x4, x5) => new List <AudienceEngagementReport>() { new AudienceEngagementReport { } }; ShimGroup.GetByGroupID_NoAccessCheckInt32 = (p) => new Group(); ShimAttachment.ConstructorString = (x1, x2) => { }; ShimFileInfo.AllInstances.AppendText = (p) => new ShimStreamWriter(); ShimXmlSerializer.AllInstances.SerializeTextWriterObject = (x1, x2, x3) => { }; }
private void InitilizeGetAdvertiserClickReportTests(string fileFormat, string recurrenceType) { ShimDirectory.ExistsString = (p) => false; ShimDirectory.CreateDirectoryString = (p) => null; ShimFile.ExistsString = (p) => true; ShimFile.DeleteString = (p) => { }; ShimFile.AppendAllTextStringString = (x1, x2) => { }; _reportSchedule = new ECN_Framework_Entities.Communicator.Fakes.ShimReportSchedule { CustomerIDGet = () => ValueInt1, BlastIDGet = () => ValueInt1, ReportParametersGet = () => { var sampleXMLDoc = new XmlDocument(); var reportScheduleElement = sampleXMLDoc.CreateElement(XMLKeyReportSchedule); sampleXMLDoc.AppendChild(reportScheduleElement); var sampleElement = sampleXMLDoc.CreateElement(XMLKeyGroupID); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1)); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, CreatedUserIDGet = () => ValueInt1, RecurrenceTypeGet = () => recurrenceType, }; ShimAdvertiserClickReport.GetListInt32DateTimeDateTime = (x1, x2, x3) => new List <AdvertiserClickReport>() { new AdvertiserClickReport { EmailSubject = DummyText } }; ShimGroup.GetByGroupID_NoAccessCheckInt32 = (p) => new Group(); ShimAttachment.ConstructorString = (x1, x2) => { }; ShimFileInfo.AllInstances.AppendText = (p) => new ShimStreamWriter(); ShimXmlSerializer.AllInstances.SerializeTextWriterObject = (x1, x2, x3) => { }; _testedClass.SetStaticFieldOrProperty(FieldMasterStartDate, new DateTime(2018, 1, 1)); }
private void InitilizeGetEmailPreviewUsageReportTests(string fileFormat, string recurrenceType) { ShimDirectory.ExistsString = (p) => false; ShimDirectory.CreateDirectoryString = (p) => null; ShimFile.ExistsString = (p) => true; ShimFile.DeleteString = (p) => { }; ShimFile.AppendAllTextStringString = (x1, x2) => { }; ShimCustomer.GetByCustomerIDInt32Boolean = (x1, x2) => null; _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(XMLKeyCustomerID); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1)); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, RecurrenceTypeGet = () => recurrenceType }; ShimEmailPreviewUsage.GetUsageDetailsAutomatedStringDateTimeDateTime = (x1, x2, x3) => new List <EmailPreviewUsage>() { new EmailPreviewUsage { } }; ShimAttachment.ConstructorString = (x1, x2) => { }; ShimFileInfo.AllInstances.AppendText = (p) => new ShimStreamWriter(); ShimXmlSerializer.AllInstances.SerializeTextWriterObject = (x1, x2, x3) => { }; }
private void InitilizeGetEmailPerformanceByDomainReportTests(string fileFormat, string recurrenceType) { ShimDirectory.ExistsString = (p) => false; ShimDirectory.CreateDirectoryString = (p) => null; ShimFile.ExistsString = (p) => true; ShimFile.DeleteString = (p) => { }; ShimFile.AppendAllTextStringString = (x1, x2) => { }; _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(XmlKeyDrillDownOther); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueTextTrue)); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, RecurrenceTypeGet = () => recurrenceType, ReportScheduleIDGet = () => ValueInt1 }; ShimEmailPerformanceByDomainReport.GetInt32DateTimeDateTimeBoolean = (x1, x2, x3, x4) => new List <EmailPerformanceByDomain>() { new EmailPerformanceByDomain { } }; ShimGroup.GetByGroupID_NoAccessCheckInt32 = (p) => new Group(); ShimAttachment.ConstructorString = (x1, x2) => { }; ShimFileInfo.AllInstances.AppendText = (p) => new ShimStreamWriter(); ShimXmlSerializer.AllInstances.SerializeTextWriterObject = (x1, x2, x3) => { }; }
private void InitilizeGetFtpExportsTests(string fileFormat, string exportSubscribeTypeCode, string exportSettings) { _reportSchedule = new ECN_Framework_Entities.Communicator.Fakes.ShimReportSchedule { CustomerIDGet = () => ValueInt1, BlastIDGet = () => ValueInt1, ReportParametersGet = () => { var sampleXMLDoc = new XmlDocument(); var reportScheduleElement = sampleXMLDoc.CreateElement(XMLKeyReportSchedule); sampleXMLDoc.AppendChild(reportScheduleElement); var sampleElement = sampleXMLDoc.CreateElement(XMLKeyExportSettings); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(exportSettings)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyExportFormat); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(fileFormat)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyExportSubscribeTypeCode); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(exportSubscribeTypeCode)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyFtpUrl); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(DummyText)); 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); sampleElement = sampleXMLDoc.CreateElement(XMLKeyExports); var sampleElement2 = sampleXMLDoc.CreateElement(XMLKeysends); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeyopens); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeyunopened); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeyclicks); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeynoclicks); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeybounces); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeyunsubscribes); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeyresends); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeysuppressed); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(XMLKeyforwards); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); sampleElement2 = sampleXMLDoc.CreateElement(DummyText); sampleElement2.AppendChild(sampleXMLDoc.CreateTextNode(ValueTexttrue)); sampleElement.AppendChild(sampleElement2); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, 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) => { }; ShimFile.AppendTextString = (x1) => { return(new ShimStreamWriter()); }; ShimTextWriter.AllInstances.WriteLineString = (instance, p) => { }; ECN_Framework_BusinessLayer.Communicator.Fakes.ShimBlast.GetByBlastID_NoAccessCheckInt32Boolean = (x1, x2) => new ECN_Framework_Entities.Communicator.BlastRegular(); ECN_Framework_Entities.Communicator.Fakes.ShimBlast.AllInstances.SendTimeGet = (p) => new DateTime(2018, 1, 1); ECN_Framework_Entities.Communicator.Fakes.ShimBlast.AllInstances.CustomerIDGet = (p) => ValueInt1; ECN_Framework_BusinessLayer.Activity.View.Fakes.ShimBlastActivity. DownloadBlastReportDetails_NoAccessCheckInt32Int32BooleanStringStringStringStringStringStringStringBoolean = (x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11) => { var sampleTable = new DataTable(); sampleTable.Clear(); sampleTable.Columns.Add(DummyText); var sampleRow = sampleTable.NewRow(); sampleRow[DummyText] = DummyText; sampleTable.Rows.Add(sampleRow); return(sampleTable); }; 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 }; } }); }; }
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)); }
private void InitilizeGetGroupExportTests(string fileFormat, string exportSubscribeTypeCode, string exportSettings, string groupId = ValueText1) { _reportSchedule = new ECN_Framework_Entities.Communicator.Fakes.ShimReportSchedule { CustomerIDGet = () => ValueInt1, BlastIDGet = () => ValueInt1, ReportParametersGet = () => { var sampleXMLDoc = new XmlDocument(); var reportScheduleElement = sampleXMLDoc.CreateElement(XMLKeyReportSchedule); sampleXMLDoc.AppendChild(reportScheduleElement); var sampleElement = sampleXMLDoc.CreateElement(XMLKeyGroupID); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(groupId)); 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); sampleElement = sampleXMLDoc.CreateElement(XMLKeyExportSettings); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(exportSettings)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyExportFormat); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(fileFormat)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyExportSubscribeTypeCode); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(exportSubscribeTypeCode)); reportScheduleElement.AppendChild(sampleElement); sampleElement = sampleXMLDoc.CreateElement(XMLKeyFilterId); sampleElement.AppendChild(sampleXMLDoc.CreateTextNode(ValueText1)); reportScheduleElement.AppendChild(sampleElement); return(sampleXMLDoc.InnerXml); }, ExportFormatGet = () => fileFormat, 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) => { }; ShimFile.AppendTextString = (x1) => { return(new ShimStreamWriter()); }; ShimTextWriter.AllInstances.WriteLineString = (instance, p) => { }; ECN_Framework_BusinessLayer.Communicator.Fakes.ShimFilter.GetByFilterID_NoAccessCheckInt32 = (p) => { return(new ECN_Framework_Entities.Communicator.Fakes.ShimFilter { WhereClauseGet = () => DummyText }); }; ECN_Framework_BusinessLayer.Communicator.Fakes.ShimEmailGroup. GetGroupEmailProfilesWithUDFInt32Int32StringStringString = (x1, x2, x3, x4, x5) => { var sampleTable = new DataTable(); sampleTable.Clear(); sampleTable.Columns.Add(DummyText); var sampleRow = sampleTable.NewRow(); sampleRow[DummyText] = DummyText; sampleTable.Rows.Add(sampleRow); return(sampleTable); }; ShimWebRequest.CreateString = (p) => { return(new ShimFtpWebRequest { GetRequestStream = () => { return (Stream) new ShimFileStream { WriteByteArrayInt32Int32 = (x1, x2, x3) => { } }; }, GetResponse = () => { return new ShimFtpWebResponse { StatusDescriptionGet = () => DummyText }; } }); }; }