Exemplo n.º 1
0
 protected override void SetBootstrapperCreationOptions(BootstrapperCreationOptions options)
 {
     options.ConfigureServices(c =>
     {
         _auditingStore = Substitute.For <IAuditingStore>();
         c.Services.ReplaceOrAdd(ServiceDescriptor.Singleton(_auditingStore), true);
     });
     base.SetBootstrapperCreationOptions(options);
 }
Exemplo n.º 2
0
 protected override void SetBootstrapperCreationOptions(BootstrapperCreationOptions options)
 {
     options.UseAspectCore();
     options.ConfigureServices(c => c.Services.AddTransient <IAuthorizeAttributeTestService, AuthorizeAttributeTestService>());
     base.SetBootstrapperCreationOptions(options);
 }