public TermsOfServiceController(ITermsOfServiceService termsOfServiceService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.termsOfServiceService = termsOfServiceService;
     this.orderByHelper         = orderByHelper;
     this.paginationHelper      = paginationHelper;
     this.mapper = mapper;
 }
Example #2
0
 public FunctionController(IFunctionService functionService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.functionService  = functionService;
     this.orderByHelper    = orderByHelper;
     this.paginationHelper = paginationHelper;
     this.mapper           = mapper;
 }
Example #3
0
 public LdapAuthenticationModeController(ILdapAuthenticationModeService authenticationModeService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.authenticationModeService = authenticationModeService;
     this.orderByHelper             = orderByHelper;
     this.paginationHelper          = paginationHelper;
     this.mapper = mapper;
 }
 public PermissionController(IPermissionService permissionsService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.permissionsService = permissionsService;
     this.orderByHelper      = orderByHelper;
     this.paginationHelper   = paginationHelper;
     this.mapper             = mapper;
 }
Example #5
0
 public SubRealmController(ISubRealmService subRealmService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.subRealmService  = subRealmService;
     this.orderByHelper    = orderByHelper;
     this.paginationHelper = paginationHelper;
     this.mapper           = mapper;
 }
Example #6
0
 public RoleController(IRoleService roleService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.roleService      = roleService;
     this.orderByHelper    = orderByHelper;
     this.paginationHelper = paginationHelper;
     this.mapper           = mapper;
 }
Example #7
0
 public ClientController(IClientService clientService, IOrderByHelper orderByHelper, IPaginationHelper paginationHelper, IMapper mapper)
 {
     this.clientService    = clientService;
     this.orderByHelper    = orderByHelper;
     this.paginationHelper = paginationHelper;
     this.mapper           = mapper;
 }
 public ApplicationController(IApplicationService applicationService, IMapper mapper, IPaginationHelper paginationHelper, IOrderByHelper orderByHelper)
 {
     this.applicationService = applicationService;
     this.mapper             = mapper;
     this.paginationHelper   = paginationHelper;
     this.orderByHelper      = orderByHelper;
 }
Example #9
0
 public UserController(IUserService userService, IProfileService profileService, IPaginationHelper paginationHelper, IOrderByHelper orderByHelper, IMapper mapper)
 {
     this.userService      = userService;
     this.profileService   = profileService;
     this.paginationHelper = paginationHelper;
     this.orderByHelper    = orderByHelper;
     this.mapper           = mapper;
 }
        public PermissionController_Tests()
        {
            permissionService = Substitute.For <IPermissionService>();
            orderByHelper     = Substitute.For <IOrderByHelper>();
            paginationHelper  = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new PermissionResourcePermisionModelProfile());
            });

            mapper = config.CreateMapper();
        }
        public RoleController_Tests()
        {
            roleService      = Substitute.For <IRoleService>();
            orderByHelper    = Substitute.For <IOrderByHelper>();
            paginationHelper = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new RoleResourceRoleModelProfile());
            });

            mapper = config.CreateMapper();
        }
        public ClientController_Tests()
        {
            clientService    = Substitute.For <IClientService>();
            orderByHelper    = Substitute.For <IOrderByHelper>();
            paginationHelper = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new Oauth2ClientResourceClientModelProfile());
            });

            mapper = config.CreateMapper();
        }
        public LdapAuthenticationModeController_Tests()
        {
            ldapAuthenticationModeService = Substitute.For <ILdapAuthenticationModeService>();
            orderByHelper    = Substitute.For <IOrderByHelper>();
            paginationHelper = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new LdapAuthenticationModeResourceLdapAuthenticationModeModelProfile());
            });

            mapper = config.CreateMapper();
        }
        public FunctionController_Tests()
        {
            functionService  = Substitute.For <IFunctionService>();
            orderByHelper    = Substitute.For <IOrderByHelper>();
            paginationHelper = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new FunctionResourceFunctionModelProfile());
            });

            mapper = config.CreateMapper();

            functionModel = new Function()
            {
                Uuid          = Guid.NewGuid(),
                Name          = "Test Function Name",
                Description   = "Test Function Description",
                ApplicationId = new Guid(),
                Permissions   = new List <Permission>()
                {
                    new Permission()
                    {
                        Uuid = Guid.NewGuid()
                    },
                    new Permission()
                    {
                        Uuid = Guid.NewGuid()
                    }
                }
            };

            functionSubmitModel = new FunctionSubmit()
            {
                Uuid          = functionModel.Uuid,
                Name          = functionModel.Name,
                Description   = functionModel.Description,
                ApplicationId = functionModel.ApplicationId,
                Permissions   = new List <Guid>()
                {
                    functionModel.Permissions[0].Uuid,
                    functionModel.Permissions[1].Uuid
                }
            };
        }
        public TeamController_Tests()
        {
            // Setup mock claims principle
            mockClaimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity(new Claim[]
            {
                new Claim(ClaimTypes.Name, "example name"),
                new Claim(ClaimTypes.NameIdentifier, Guid.NewGuid().ToString()),
                new Claim("custom-claim", "example claim value"),
            }, "mock"));

            teamService      = Substitute.For <ITeamService>();
            orderByHelper    = Substitute.For <IOrderByHelper>();
            paginationHelper = Substitute.For <IPaginationHelper>();

            var config = new MapperConfiguration(cfg =>
            {
                cfg.AddProfile(new TeamResourceTeamModelProfile());
            });

            mapper = config.CreateMapper();
        }