public void Initialize() { InMemoryDatabaseSessionFactory.CreateDatabase(); var databaseSessionFactory = new InMemoryDatabaseSessionFactory(); ErrorRepository = new ErrorRepository(databaseSessionFactory); }
public void CleanUp() { ErrorRepository = null; InMemoryDatabaseSessionFactory.CloseInternal(); }