Ejemplo n.º 1
0
 private EasyADGroup CreateTranslatorsGroup()
 {
     var handler = new SaveGroupHandler(Repo, Manager, Services.UserService);
     var groupName = "AD-Translators";
     Manager.AddUsers(groupName,
         ADUsers.ChristopherMoore,
         ADUsers.SethButler
         );
     var group = new EasyADGroup
     {
         Name = groupName,
         UserType = AllUserTypes["Translator"],
         Sections = AllSections["Translation"]
     };
     handler.Handle(group);
     return group;
 }
Ejemplo n.º 2
0
 private EasyADGroup CreateWritersGroup()
 {
     var handler = new SaveGroupHandler(Repo, Manager, Services.UserService);
     var groupName = "AD-Writers";
     Manager.AddUsers(groupName,
         ADUsers.AndrewDavis
     );
     var group = new EasyADGroup
     {
         Name = groupName,
         UserType = AllUserTypes["Writer"],
         Sections = string.Join(";", AllSections["Content"], AllSections["Media"])
     };
     handler.Handle(group);
     return group;
 }
Ejemplo n.º 3
0
 private EasyADGroup CreateAdminsGroup()
 {
     var handler = new SaveGroupHandler(Repo, Manager, Services.UserService);
     var groupName = "AD-Admins";
     Manager.AddUsers(groupName,
         ADUsers.ChristopherMoore,
         ADUsers.DanielMiller
     );
     var group = new EasyADGroup
     {
         Name = groupName,
         UserType = AllUserTypes["Editors"],
         Sections = string.Join(";", AllSections.Values)
     };
     handler.Handle(group);
     return group;
 }