void WhenWriteToConsoleSuccessThenSendAlert()
        {
            Dictionary <String, int> word = new Dictionary <String, int> {
                { "what", 1 }
            };
            WriteToCsvFile writeToCsv = new WriteToCsvFile();

            Assert.True(writeToCsv.RedirectToCsvFile(word) == "Error While Writing To File");
        }
        void WhenWriteToConsoleSuccessThenSendAlert()
        {
            Dictionary <String, int> word = new Dictionary <String, int>();

            word.Add("what", 1);
            WriteToCsvFile wtcf = new WriteToCsvFile();

            Assert.True(wtcf.RedirectToCsvFile(word) == "Error While Writting To File");
        }
        public void CheckDataWriteToCsvFile()
        {
            var csvFileWriter = new WriteToCsvFile();

            string filenameDay  = "FootfallDayCsv.csv";
            string filenameWeek = "FootfallWeekCsv.csv";

            Assert.True(csvFileWriter.FootfallDayWeekCsvFileWriter("1/9/2020", (float)1.5, filenameDay));
            Assert.True(csvFileWriter.FootfallDayWeekCsvFileWriter("1/9/2020", (float)1.75, filenameWeek));
            Assert.True(csvFileWriter.FootfallLastMonthCsvFileWriter(8, 4));
        }