protected override void RegisterDependencies(IServiceCollection collection) { DependencyRegistration.ConfigureStaticDependencies(collection); // Mocked external dependencies, the setup should // come later according to the scenarios repository = Substitute.For <IMenuRepository>(); applicationEventPublisher = Substitute.For <IApplicationEventPublisher>(); collection.AddTransient(IoC => repository); collection.AddTransient(IoC => applicationEventPublisher); }
protected override void RegisterDependencies(IServiceCollection collection) { DependencyRegistration.ConfigureStaticDependencies(collection); collection.AddSingleton <IOptions <JwtBearerAuthenticationConfiguration> >(serviceProvider => jwtBearerAuthenticationOptions); }