Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Tests/Mocks/MockUserManager.cs @ 6701

Last change on this file since 6701 was 6463, checked in by cneumuel, 13 years ago

#1233

  • created user interface for experiment sharing
  • created UserManager which provides access to the users
  • inserted a lot of security and authorization checks serverside
  • minor fixes in experiment manager
File size: 919 bytes
RevLine 
[6463]1using System;
2using System.Web.Security;
3
4namespace HeuristicLab.Services.Hive.Tests.Mocks {
5  public class MockUserManager : IUserManager {
6    public static Guid MockUserId1 = new Guid("6C7911A1-46EA-4E51-97DF-5582653AAFCE");
7    public static Guid MockUserId2 = new Guid("897660EB-C90F-4054-988C-D39D530A0A02");
8    public static Guid MockUserId3 = new Guid("9F7B4EA8-A38D-4BC2-802F-E148AC7A6A87");
9
10    private Guid currentUserId = MockUserId1;
11    public Guid CurrentUserId {
12      get { return currentUserId; }
13    }
14
15    public MembershipUser CurrentUser {
16      get { return null; /* todo */ }
17    }
18   
19    public MembershipUser GetUserByName(string username) {
20      return null; // todo
21    }
22
23    public MembershipUser GetUserById(Guid userId) {
24      return null; // todo
25    }
26
27    public void SetUserId(Guid userId) {
28      this.currentUserId = userId;
29    }
30  }
31}
32
33
Note: See TracBrowser for help on using the repository browser.