Beispiel #1
0
 public static IPrincipalStorage Setup(this IPrincipalStorage storage)
 {
     storage.Add(Principal.From(Admin));
     storage.Add(Principal.From(DanielB));
     storage.Add(Principal.From(Andre));
     storage.Add(Principal.From(Organisations.Fonterra));
     storage.Add(Principal.From(Organisations.OpenCountry));
     return(storage);
 }
Beispiel #2
0
 public PrincipalController(IPrincipalStorage storage)
 {
     this.storage = storage;
 }
 public DataProviderPolicyApplicator(IDataProviderStorage storage,
                                     IPrincipalStorage principalStorage)
 {
     this.storage          = storage;
     this.principalStorage = principalStorage;
 }