Ejemplo n.º 1
0
 public void Cleanup()
 {
     using (var userContext = new TWG.EASDataService.DbContext.DataServiceEntities("Datasource=myTestDatabase.mdf"))
     {
         userContext.Database.Delete();
     }
 }
Ejemplo n.º 2
0
        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;
            }
        }