public SpecialOwnersController(
     IRepository <SpecialOwnerDto, SpecialOwnerQuery> repo,
     ShibbolethAttributes shibbolethAttribs)
 {
     _repo = repo;
     _shibbolethAttribs = shibbolethAttribs;
     _log = LogManager.GetLogger(GetType());
 }
        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();
            }
        }
 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());
 }