Пример #1
0
        public OpenConferenceHandlerTests(ITestOutputHelper outputHelper)
        {
            _logger = outputHelper.CreateLogger <OpenConferenceHandler>();

            _openConferenceRepository = new Mock <IOpenConferenceRepository>();
            _mediator = new Mock <IMediator>();
        }
Пример #2
0
        public static ILogger CreateLogger <T>(ITestOutputHelper output, LoggingSettings settings = null)
        {
            EnsureArg.IsNotNull(output, nameof(output));

            return(output.CreateLogger <T>(settings));
        }
Пример #3
0
        public static ILogger CreateLogger(ITestOutputHelper output, LoggingSettings settings = null, [CallerMemberName] string memberName = null)
        {
            EnsureArg.IsNotNull(output, nameof(output));

            return(output.CreateLogger(settings, memberName));
        }
 public XUnitTestBase(ITestOutputHelper output)
 {
     Output = output;
     Logger = Output.CreateLogger(GetType().Name);
 }