Exemplo n.º 1
0
        private Substitution CreateSubstitution()
        {
            var tenant      = _testHelper.CreateTenant("TheTenant", "UID");
            var group       = _testHelper.CreateGroup("TheGroup", null, tenant);
            var user        = _testHelper.CreateUser("UserName", "FN", "LN", null, group, tenant);
            var substituton = Substitution.NewObject();

            substituton.SubstitutedUser  = user;
            substituton.SubstitutingUser = _testHelper.CreateUser("SubstitutingUser", "SFN", "SLN", null, group, tenant);

            return(substituton);
        }
Exemplo n.º 2
0
        private User CreateUser()
        {
            var tenant = _testHelper.CreateTenant("TheTenant", "UID");
            var group  = _testHelper.CreateGroup("TheGroup", null, tenant);

            return(_testHelper.CreateUser("UserName", "FN", "LN", null, group, tenant));
        }