Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.859 kB
using System;
using System.Configuration;
using System.IO;
using NUnit.Framework;
using ServiceStack.Common.Utils;
using ServiceStack.Logging;
using ServiceStack.Logging.Support.Logging;
using ServiceStack.OrmLite.PostgreSQL;
namespace ServiceStack.OrmLite.Tests
{
public class OrmLiteTestBase
{
protected virtual string ConnectionString { get; set; }
[TestFixtureSetUp]
public void TestFixtureSetUp()
{
LogManager.LogFactory = new ConsoleLogFactory();
OrmLiteConfig.DialectProvider = PostgreSQLDialectProvider.Instance;
OrmLiteConfig.DialectProvider.NamingStrategy = new OrmLiteNamingStrategyBase();
OrmLiteConfig.ClearCache();
ConnectionString = ConfigurationManager.ConnectionStrings["testDb"].ConnectionString;
}
public void Log(string text)
{
Console.WriteLine(text);
}
}
}
Jump to Line
Something went wrong with that request. Please try again.