Beispiel #1
0
 public DetailsTests(EditionFixture fixture, ITestOutputHelper output)
 {
     _fixture = fixture
                .ConfigureOutput(output)
                as EditionFixture
                ?? throw new ArgumentNullException(nameof(fixture));
 }
 public IndexTests(EditionFixture fixture, ITestOutputHelper output)
 {
     _fixture = fixture
                .ConfigureOutput(output)
                //.ConfigureInitialization(Initialize)
                as EditionFixture
                ?? throw new ArgumentNullException(nameof(fixture));
 }
Beispiel #3
0
        public CreateTests(EditionFixture fixture, ITestOutputHelper output)
        {
            _fixture = fixture
                       .ConfigureOutput(output)
                       as EditionFixture
                       ?? throw new ArgumentNullException(nameof(fixture));
            var formatter = new System.Net.Http.Formatting.JsonMediaTypeFormatter();

            formatter.SupportedMediaTypes.Add(new System.Net.Http.Headers.MediaTypeHeaderValue("application/problem+json"));
            _defaultFormatters = new[] { formatter };
        }