Пример #1
0
        private static Tuple <RoleStore <MockRole, ObjectId, MockUserRole, MockRoleClaim>, UserStore <MockUser, MockRole, MockUserToken> > GetStoresPrivate()
        {
            IdentityDatabase db = new IdentityDatabase();

            return(new Tuple <RoleStore <MockRole, ObjectId, MockUserRole, MockRoleClaim>, UserStore <MockUser, MockRole, MockUserToken> >(
                       new RoleStore <MockRole, ObjectId, MockUserRole, MockRoleClaim>(db.RoleStore),
                       new UserStore <MockUser, MockRole, MockUserToken>(db.UserStore, db.RoleStore)
                       ));
        }
Пример #2
0
        private static UserStore <MockUser, MockRole, MockUserToken> GetUserStorePrivate()
        {
            IdentityDatabase db = new IdentityDatabase();

            return(new UserStore <MockUser, MockRole, MockUserToken>(db.UserStore, db.RoleStore));
        }
Пример #3
0
        private static RoleStore <MockRole, ObjectId, MockUserRole, MockRoleClaim> GetRoleStorePrivate()
        {
            IdentityDatabase db = new IdentityDatabase();

            return(new RoleStore <MockRole, ObjectId, MockUserRole, MockRoleClaim>(db.RoleStore));
        }