public void Cleanup() { using (var userContext = new TWG.EASDataService.DbContext.DataServiceEntities("Datasource=myTestDatabase.mdf")) { userContext.Database.Delete(); } }
public void Setup() { try { var db = new TWG.EASDataService.DbContext.DataServiceEntities("Datasource=myTestDatabase4.mdf"); db.Database.CreateIfNotExists(); _userService = new UserService(new UserRepository(new DatabaseFactory())); _objectUnderTest = new OAuthProvider(_userService); } catch (Exception ex) { string s = ex.Message; } }