예제 #1
0
		public AccountController()
			: this(new ULearnUserManager())
		{
			db = new ULearnDb();
			courseManager = WebCourseManager.Instance;
			usersRepo = new UsersRepo(db);
			userRolesRepo = new UserRolesRepo(db);
			groupsRepo = new GroupsRepo(db);
			certificatesRepo = new CertificatesRepo(db);
			visitsRepo = new VisitsRepo(db);
		}
예제 #2
0
		public AccountController()
			: this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ULearnDb())))
		{
			db = new ULearnDb();
			courseManager = WebCourseManager.Instance;
			userManager.UserValidator =
				new UserValidator<ApplicationUser>(userManager)
				{
					AllowOnlyAlphanumericUserNames = false
				};
			usersRepo = new UsersRepo(db);
			userRolesRepo = new UserRolesRepo(db);
		}
예제 #3
0
		public UnitController()
		{
			db = new ULearnDb();
			courseManager = WebCourseManager.Instance;
			usersRepo = new UsersRepo(db);
		}