Пример #1
0
        public void Can_export_report_data()
        {
            var filteredRecords = ReportController.FilterAndOrder(
                _reportQueries.GetVipLevelRecordsForExport(),
                new VipLevelRecord(),
                "Created", "asc");

            // Act
            var content = Encoding.Unicode.GetString(ReportController.ExportToExcel(filteredRecords));

            // Assert
            Assert.AreNotEqual(content.IndexOf("<table"), -1);
        }
Пример #2
0
        public void Can_export_report_data()
        {
            // Arrange
            BrandTestHelper.CreateCulture("en-TS", "English (Test)");

            var filteredRecords = ReportController.FilterAndOrder(
                _reportQueries.GetLanguageRecordsForExport(),
                new LanguageRecord(),
                "Created", "asc");

            // Act
            var content = Encoding.Unicode.GetString(ReportController.ExportToExcel(filteredRecords));

            // Assert
            Assert.AreNotEqual(content.IndexOf("<table"), -1);
        }
        public async Task Can_export_report_data()
        {
            // Arrange
            await _gamesTestHelper.PlaceBet(RandomBetAmount(), _player.Id);

            var filteredRecords = ReportController.FilterAndOrder(
                _reportQueries.GetPlayerBetHistoryRecordsForExport(),
                new PlayerBetHistoryRecord(),
                "DateBet", "asc");

            // Act
            var content = Encoding.Unicode.GetString(ReportController.ExportToExcel(filteredRecords));

            // verify data
            Assert.AreNotEqual(content.IndexOf("<table"), -1);
        }
Пример #4
0
        public void Can_export_report_data()
        {
            // Arrange
            PaymentTestHelper.CreateOfflineDeposit(_player.Id, TestDataGenerator.GetRandomDepositAmount());

            var filteredRecords = ReportController.FilterAndOrder(
                _reportQueries.GetDepositRecordsForExport(),
                new DepositRecord(),
                "Submitted", "asc");

            // Act
            var content = Encoding.Unicode.GetString(ReportController.ExportToExcel(filteredRecords));

            // Assert
            Assert.AreNotEqual(content.IndexOf("<table"), -1);
        }
Пример #5
0
        public void Can_export_report_data()
        {
            // Arrange
            PlayerTestHelper.CreatePlayer();

            var filteredRecords = ReportController.FilterAndOrder(
                _reportQueries.GetPlayerRecordsForExport(),
                new PlayerRecord(),
                "RegistrationDate", "asc");

            // Act
            var content = Encoding.Unicode.GetString(ReportController.ExportToExcel(filteredRecords));

            // Assert
            Assert.AreNotEqual(content.IndexOf("<table"), -1);
        }