public static void InitTestClass(TestContext context) { dataContext = TestDatabaseCreator.Create <UserDataInitializer>(ConnectionStringName); _service = new UserService(new DbContextScopeFactory(new MockSingleContextFactory(dataContext))); }
public static void InitTestClass(TestContext context) { dataContext = TestDatabaseCreator.Create <UserDataInitializer>(ConnectionStringName); _service = new StudentService(dataContext); }