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());
public RequestDataController(ShibbolethAttributes shibbolethAttributes) { _log = LogManager.GetLogger(GetType()); _shibbolethAttributes = shibbolethAttributes; }
public AssetsController(IAssetRepository repo, ShibbolethAttributes shibbolethAttribs) { _repo = repo; _shibbolethAttribs = shibbolethAttribs; _log = LogManager.GetLogger(GetType()); }
public RolesController(IUserRoleRepository repo, ShibbolethAttributes shibbolethAttribs) { _repo = repo; _shibbolethAttribs = shibbolethAttribs; }
public ProductsController(IRepository <ProductDto, ProductQuery> repo, ShibbolethAttributes shibbolethAttribs) { _repo = repo; _shibbolethAttribs = shibbolethAttribs; _log = LogManager.GetLogger(GetType()); }