private List <ExceptionInfo> WriteList()
        {
            Exception     ex1            = LogHelperTest.CreateException("M1-" + Guid.NewGuid().ToString());
            ExceptionInfo exceptionInfo1 = ExceptionInfo.Create(ex1);

            exceptionInfo1.Addition = "If you liked Fiddler, we also recommend";
            //exceptionInfo1.A1 = "aaaaaaaaaaaa";


            System.Threading.Thread.Sleep(1000);


            Exception     ex2            = LogHelperTest.CreateException("M2-" + Guid.NewGuid().ToString());
            ExceptionInfo exceptionInfo2 = ExceptionInfo.Create(ex2);

            exceptionInfo2.Addition = "Test Studio - Create Automated Tests Quickly";
            //exceptionInfo2.A1 = "aaaaaaaaaaaa";


            MongoDbWriter        writer = new MongoDbWriter();
            List <ExceptionInfo> list1  = new List <ExceptionInfo> {
                exceptionInfo1, exceptionInfo2
            };

            writer.Write(list1);

            System.Threading.Thread.Sleep(1000);

            return(list1);
        }
        static void Main(string[] args)
        {
            Database.SetInitializer(new MigrateDatabaseToLatestVersion
                                    <SupermarketContext, Configuration>());

            ClientMySQL.MySQLReader.MoveData();
            ExcelReader.ExtractReportNames();
            MongoDbWriter.Write();
            SQLiteReader.MoveData();

            PDFFileCreator.CreateTable("sampleForTest.pdf");
            XMLFIleCreator.CreateXMLFile("salesForTest.xml");

            ExcelWriter.CreateExcelTable();
            XMLFileReader.ParseXML("../../Vendor-Expenses.xml");
        }
        public void Test_Write()
        {
            Exception     ex             = LogHelperTest.CreateException("M-" + Guid.NewGuid().ToString());
            ExceptionInfo exceptionInfo1 = ExceptionInfo.Create(ex);

            exceptionInfo1.Addition = "If you liked Fiddler, we also recommend";

            MongoDbWriter writer = new MongoDbWriter();

            writer.Write(exceptionInfo1);


            ExceptionInfo exceptionInfo2 = writer.Get <ExceptionInfo>(exceptionInfo1.InfoGuid);

            Assert.AreEqual(exceptionInfo1.Message.ToString(), exceptionInfo2.Message.ToString());
            Assert.AreEqual(exceptionInfo1.Addition.ToString(), exceptionInfo2.Addition.ToString());

            writer.Delete <ExceptionInfo>(exceptionInfo1.InfoGuid);
        }