コード例 #1
0
 public SpecialOwnersController(
     IRepository <SpecialOwnerDto, SpecialOwnerQuery> repo,
     ShibbolethAttributes shibbolethAttribs)
 {
     _repo = repo;
     _shibbolethAttribs = shibbolethAttribs;
     _log = LogManager.GetLogger(GetType());
 }
コード例 #2
0
        private static void RegisterServices(ContainerBuilder builder)
        {
            builder.RegisterType <Log4NetExceptionLogger>().As <IExceptionLogger>();

            builder.RegisterType <ShibbolethAuthorizer>();
            if (ShibbolethAttributesMock.ShouldMock)
            {
                builder.Register(x => ShibbolethAttributesMock.FromConfig()).SingleInstance();
            }
            else
            {
                builder.Register(x => ShibbolethAttributes.FromHeader()).InstancePerRequest();
            }
        }
コード例 #3
0
 public void Setup() =>
 _sut = new ShibbolethAttributes(CreateVariables());
コード例 #4
0
 public RequestDataController(ShibbolethAttributes shibbolethAttributes)
 {
     _log = LogManager.GetLogger(GetType());
     _shibbolethAttributes = shibbolethAttributes;
 }
コード例 #5
0
 public AssetsController(IAssetRepository repo, ShibbolethAttributes shibbolethAttribs)
 {
     _repo = repo;
     _shibbolethAttribs = shibbolethAttribs;
     _log = LogManager.GetLogger(GetType());
 }
コード例 #6
0
 public RolesController(IUserRoleRepository repo, ShibbolethAttributes shibbolethAttribs)
 {
     _repo = repo;
     _shibbolethAttribs = shibbolethAttribs;
 }
コード例 #7
0
 public ProductsController(IRepository <ProductDto, ProductQuery> repo, ShibbolethAttributes shibbolethAttribs)
 {
     _repo = repo;
     _shibbolethAttribs = shibbolethAttribs;
     _log = LogManager.GetLogger(GetType());
 }