public void ExportData_SubcribeTypeDefault_SearchTypeDefault_DownloadTypeDefault()
        {
            // Arrange
            var controller = new SubscriberController();

            InitilizeExportDataTests();

            // Act
            controller.ExportData(SampleGroupId1, String.Empty, SampleEmail, String.Empty, String.Empty, SampleFilter, SampleFromDate, SampleToDate, true);

            // Assert
            _contentType.ShouldBeEmpty();
            _fileText.ShouldBeEmpty();
        }
        public void ExportData_SubcribeTypeDefault_SearchTypeEquals_DownloadTypeCsv()
        {
            // Arrange
            var controller = new SubscriberController();

            InitilizeExportDataTests();

            // Act
            controller.ExportData(SampleGroupId1, String.Empty, SampleEmail, SearchTypeEquals, DownloadTypeCsv, SampleFilter, SampleFromDate, SampleToDate, true);

            // Assert
            _contentType.ShouldBe("text/csv");
            _fileText.ShouldBe("\"DataColumn1\",\"DataColumn2\",\"Data11\",\"Data12\",\"Data21\",\"Data22\",");
            _responseHeader.ShouldContain("emails.csv");
            _responseText.ShouldContain("emails.csv");
        }
        public void ExportData_SubcribeTypeAll_SearchTypeLike_DownloadTypeXls()
        {
            // Arrange
            var controller = new SubscriberController();

            InitilizeExportDataTests();

            // Act
            controller.ExportData(SampleGroupId1, SubcribeTypeAll, SampleEmail, SearchTypeLike, DownloadTypeXls, SampleFilter, SampleFromDate, SampleToDate, true);

            // Assert
            _contentType.ShouldBe("application/vnd.ms-excel");
            _fileText.ShouldBe("DataColumn1\tDataColumn2\tData11\tData12\tData21\tData22\t");
            _responseHeader.ShouldContain("emails.xls");
            _responseText.ShouldContain("emails.xls");
        }
        public void ExportData_SubcribeTypeDefault_SearchTypeStarts_DownloadTypeXml()
        {
            // Arrange
            var controller = new SubscriberController();

            InitilizeExportDataTests();

            // Act
            controller.ExportData(SampleGroupId1, String.Empty, SampleEmail, SearchTypeStarts, DownloadTypeXml, SampleFilter, SampleFromDate, SampleToDate, true);

            // Assert
            _contentType.ShouldBe("text/xml");
            _fileText.ShouldBeEmpty();
            _responseHeader.ShouldContain("emails.xml");
            _responseText.ShouldContain("emails.xml");
        }