Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/20/11 17:04:35 (13 years ago)
Author:
cneumuel
Message:

#1233

  • added methods for granting and revoking hive experiment permissions
  • added unit tests for hive experiment permissions
  • added a status webpage to see how some statistics and current status
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Tests/Mocks/MockAuthorizationManager.cs

    r6372 r6457  
    2424namespace HeuristicLab.Services.Hive.Tests.Mocks {
    2525  public class MockAuthorizationManager : IAuthorizationManager {
    26     private Guid userId = new Guid("6C7911A1-46EA-4E51-97DF-5582653AAFCE");
     26    public static Guid MockUserId1 = new Guid("6C7911A1-46EA-4E51-97DF-5582653AAFCE");
     27    public static Guid MockUserId2 = new Guid("897660EB-C90F-4054-988C-D39D530A0A02");
     28    public static Guid MockUserId3 = new Guid("9F7B4EA8-A38D-4BC2-802F-E148AC7A6A87");
     29
     30    private Guid userId = MockUserId1;
    2731
    2832    public Guid UserId {
     
    3741      // o.k.
    3842    }
    39 
     43   
     44    internal void SetUserId(Guid id) {
     45      this.userId = id;
     46    }
    4047  }
    4148}
Note: See TracChangeset for help on using the changeset viewer.