示例#1
0
        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();
        }
示例#2
0
 public ActionResult RegOptions(OrgSearchModel m)
 {
     return(m.RegOptionsList());
 }