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); }
public void CheckSignIn() { MeccaUnityManager.Register(); UserModel um = new UserModel(); um.UserName = "******"; um.Password = "******"; Assert.AreEqual(true, um.AuthenticateUser(um)); }