public void Should_Generate_Options_Settings() { var db = DatabaseFixture.NewDbContext(); User user = db.Users.Where(u => u.Username == "admin").FirstOrDefault(); db.CurrentUser = user; OrgSearchModel m = new OrgSearchModel(db); var result = m.RegOptionsList(); result.ShouldNotBeNull(); }
public ActionResult RegOptions(OrgSearchModel m) { return(m.RegOptionsList()); }