public void CheckThatFileContainsRightNumberOfRows()
        {
            //arrange - structure of what to test
            var systemUnderTest = new SalesCampaignFile(filePath);
            int expected        = 6;

            //act - make the call to the operations we are trying to assert
            int actual = systemUnderTest.NumberOfLinesInFile();

            //assert - assert the results
            Assert.AreEqual(expected, actual);
        }
        public void CheckThatFirstLineOfFileIsANumber()
        {
            //arrange - structure of what to test
            var  systemUnderTest = new SalesCampaignFile(filePath);
            bool expected        = true;

            //act - make the call to the operations we are trying to assert
            bool actual = systemUnderTest.IsFirstLineOfFileANumber();

            //assert - assert the results
            Assert.AreEqual(expected, actual);
        }
        public void CheckTotalNumberOfDailyOrdersDoesNotExceedOneHundredThousand()
        {
            string filePath = @"C:\Users\Kingsley\Documents\Visual Studio 2015\Projects\SalesCampaignPrizeCalculator\SalesCampaignPrizeCalculator\20170824_SalesCampaignFile_Wrong_NumberOfOrdersDayOneOverOneHundredThousand.txt";
            //arrange - structure of what to test
            var  systemUnderTest = new SalesCampaignFile(filePath);
            bool expected        = false;

            //act - make the call to the operations we are trying to assert
            bool actual = systemUnderTest.IsNumberOfDailyOrdersValid();

            //assert - assert the results
            Assert.AreEqual(expected, actual);
        }
        public void CheckCampaignDayIsNotValidIfGreaterThanFiveThousand()
        {
            string filePath = @"C:\Users\Kingsley\Documents\Visual Studio 2015\Projects\SalesCampaignPrizeCalculator\SalesCampaignPrizeCalculator\20170824_SalesCampaignFile_Wrong_FirstLineOver5000.txt";
            //arrange - structure of what to test
            var  systemUnderTest = new SalesCampaignFile(filePath);
            bool expected        = false;

            //act - make the call to the operations we are trying to assert
            bool actual = systemUnderTest.IsCampaignDayValid();

            //assert - assert the results
            Assert.AreEqual(expected, actual);
        }
        public void CheckThatNoAmountExceedsOneMillion()
        {
            string filePath = @"C:\Users\Kingsley\Documents\Visual Studio 2015\Projects\SalesCampaignPrizeCalculator\SalesCampaignPrizeCalculator\20170824_SalesCampaignFile_Wrong_AmountExceedsAMillion.txt";
            //arrange - structure of what to test
            var  systemUnderTest = new SalesCampaignFile(filePath);
            bool expected        = false;

            //act - make the call to the operations we are trying to assert
            bool actual = systemUnderTest.AreAllAmountsValid();

            //assert - assert the results
            Assert.AreEqual(expected, actual);
        }