public void CreateComponent() { MockSentinelEntryServiceImpl.Delay = 0; _context = new TestContext(); _context.Services.AddAutoMapper(typeof(ISentinelEntryService).Assembly); _context.Services.AddSingleton <ISentinelEntryService, MockSentinelEntryServiceImpl>(); _context.Services.AddScoped(typeof(ILogger <>), typeof(NullLogger <>)); _sentinelEntryService = _context.Services.GetService <ISentinelEntryService>(); _renderedComponent = CreateSut(_context); }
public void CreateComponent() { MockSentinelEntryServiceImpl.Delay = 0; _mockClinicalBreakpointService = new MockClinicalBreakpointService(); _mockMicStepsService = new MockMicStepsService(); _context = new TestContext(); _context.Services.AddAutoMapper(typeof(ISentinelEntryService).Assembly); _context.Services.AddSingleton <ISentinelEntryService, MockSentinelEntryServiceImpl>(); _context.Services.AddSingleton <IClinicalBreakpointService>(_mockClinicalBreakpointService); _context.Services.AddSingleton <IMicStepsService>(_mockMicStepsService); _context.Services.AddScoped <AuthenticationStateProvider, MockAuthStateProvider>(); _context.Services.AddScoped <SignOutSessionStateManager>(); _context.Services.AddScoped(typeof(ILogger <>), typeof(NullLogger <>)); _sentinelEntryService = _context.Services.GetService <ISentinelEntryService>(); }