public static void Init(TestContext context) { File.Delete(DatabaseConfig.ConnStringSQLite); _session = new KundenverwaltungContext(); _session.Database.ExecuteSqlCommand("IF OBJECT_ID('dbo.Testtable') IS NOT NULL DROP TABLE Testtable"); _session.Database.ExecuteSqlCommand("CREATE TABLE Testtable (ID int not null, Bla nvarchar(200))"); }
public static void MyClassInitialize(TestContext testContext) { _session = new KundenverwaltungContext(); }