public void GenericDatabaseTest() { using (var db = new PropertyManagerDbContext()) { var firstProperty = db.Properties.FirstOrDefault(); Assert.IsNull(firstProperty); } }
public AuthRepository() { _ctx = new PropertyManagerDbContext(); _userManager = new UserManager<IdentityUser>(new UserStore<IdentityUser>(_ctx)); }
public AuthRepository() { _ctx = new PropertyManagerDbContext(); _userManager = new UserManager <IdentityUser>(new UserStore <IdentityUser>(_ctx)); }