예제 #1
0
 protected void Application_Start()
 {
     MeccaUnityManager.Register();
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     // WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
예제 #2
0
        public void CheckSignIn()
        {
            MeccaUnityManager.Register();

            UserModel um = new UserModel();

            um.UserName = "******";
            um.Password = "******";

            Assert.AreEqual(true, um.AuthenticateUser(um));
        }