public void GamblingModelTestNullBankRecordsException()
 {
     var input = new GamblingInput()
     {
         DateRangeInDays = 30,
         FilterTerms = new List<string>(),
         BankRecords = null
     };
     GamblingModel.Instance.Analyze(input);
 }
 public void FinanceWithdrawalsModelTest0DateRangeInDaysException()
 {
     var input = new GamblingInput()
     {
         DateRangeInDays = 0,
         FilterTerms = new List<string>(),
         BankRecords = null
     };
     FinanceWithdrawalsModel.Instance.Analyze(input);
 }
        public void GamblingModelTestSuccess()
        {
            var testData = TestRecords.GetTestData();
            Assert.IsNotNull(testData);

            var searchTerm = new List<string>
            {
                "Casino",
                "Digimedia",
                "Racing",
                "Seabrook",
                "Sky City",
                "Slots",
                "TAB",
                "ThePalac",
                "B365",
                "Sportsbet"
            };

            var recorddata = testData.FirstOrDefault(data => data.Code == "RE85MC");
            var input = new GamblingInput()
            {
                DateRangeInDays = 90,
                FilterTerms = searchTerm,
                BankRecords = recorddata
            };

            var outputs = GamblingModel.Instance.Analyze(input);
            Assert.IsNotNull(outputs as GamblingOverallSummary);
            Assert.IsTrue((outputs as GamblingOverallSummary).GamblingGroupSummaries.Count == 4);
            Assert.IsTrue((outputs as GamblingOverallSummary).Count == 6);
        }
 public void FinanceWithdrawalsModelTestNullRecordsException()
 {
     var bankRecords = new BankData("fake");
     var input = new GamblingInput()
     {
         DateRangeInDays = 30,
         FilterTerms = new List<string>(),
         BankRecords = bankRecords
     };
     FinanceWithdrawalsModel.Instance.Analyze(input);
 }