Пример #1
0
        internal static DatabaseFactory GetPopulatedDatabase()
        {
            var dbFactory = new DatabaseFactory();
            dbFactory.PopulateDatabase();

            return dbFactory;
        }
Пример #2
0
 private static void LogDuplicateRecordInsertionFailure(DatabaseFactory db)
 {
     try
     {
         db.InsertDuplicateRecord();
     }
     catch
     {
         Console.WriteLine();
         Console.WriteLine("Failed to insert a duplicate record!");
     }
 }