Testing backend database access
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Net.Mail;
|
||||
|
||||
using Swarmops.Basic;
|
||||
using Swarmops.Basic.Enums;
|
||||
using Swarmops.Database;
|
||||
using Swarmops.Logic.Financial;
|
||||
using Swarmops.Logic.Swarm;
|
||||
using Swarmops.Logic.Structure;
|
||||
@@ -69,6 +70,11 @@ namespace Swarmops.Backend
|
||||
Console.WriteLine("\r\nMidnight:");
|
||||
OnMidnight();
|
||||
*/
|
||||
|
||||
Console.WriteLine("Testing database access...");
|
||||
|
||||
SwarmDb.GetDatabaseForReading().GetPerson(1);
|
||||
|
||||
Console.Write("\r\nAll tests run. Waiting for mail queue to flush... ");
|
||||
while (!MailTransmitter.CanExit)
|
||||
{
|
||||
|
||||
@@ -247,7 +247,7 @@ namespace Swarmops.Database
|
||||
// config file used by GetDatabase()
|
||||
private const string AppConfigFile = @"database.config";
|
||||
private const string WebConfigFile = @"~/database.config";
|
||||
private const string MonoConfigFile = @"./database.config";
|
||||
private const string MonoConfigFile = @"/etc/swarmops/database.config";
|
||||
|
||||
private const string DefaultProviderName = "MySql.Data.MySqlClient";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user