private TestServerSession(string scenario, TestServerVersion version, bool allowUnmatched, string[] expectedCoverage)
 {
     _scenario         = scenario;
     _version          = version;
     _allowUnmatched   = allowUnmatched;
     _expectedCoverage = expectedCoverage;
     Server            = GetServer();
 }
        public static TestServerSession Start(string scenario, TestServerVersion version, bool allowUnmatched = false, params string[] expectedCoverage)
        {
            if (version == TestServerVersion.V2)
            {
                // we only use v1 for coverage
                expectedCoverage = Array.Empty <string>();
            }
            var server = new TestServerSession(scenario, version, allowUnmatched, expectedCoverage);

            return(server);
        }
Exemplo n.º 3
0
 public XmlTests(TestServerVersion version) : base(version, "xml")
 {
 }
 public AdditionalPropertiesTest(TestServerVersion version) : base(version, "additionalProperties")
 {
 }
Exemplo n.º 5
0
 public BodyDurationTest(TestServerVersion version) : base(version, "duration")
 {
 }
Exemplo n.º 6
0
 public BodyComplexTest(TestServerVersion version) : base(version, "complex")
 {
 }
Exemplo n.º 7
0
 public TestServerTestBase(TestServerVersion version, string?coverageFile)
 {
     _version      = version;
     _coverageFile = coverageFile;
 }
Exemplo n.º 8
0
 public MediaTypesTests(TestServerVersion version) : base(version, "mediatypes")
 {
 }
Exemplo n.º 9
0
 public IntegerTest(TestServerVersion version) : base(version, "int")
 {
 }
Exemplo n.º 10
0
 public BodyByte(TestServerVersion version) : base(version, "byte")
 {
 }
Exemplo n.º 11
0
 public BodyDateTimeRfc1123Test(TestServerVersion version) : base(version, "datetime-rfc1123")
 {
 }
 public MultipleInheritanceTest(TestServerVersion version) : base(version, "multipleInheritance")
 {
 }
 public ParameterGroupingTests(TestServerVersion version) : base(version, "azureParameterGrouping")
 {
 }
Exemplo n.º 14
0
 public NumberTest(TestServerVersion version) : base(version, "number")
 {
 }
 public AzureSpecialPropertiesTest(TestServerVersion version) : base(version, "azureSpecials")
 {
 }
Exemplo n.º 16
0
 public BodyFileTests(TestServerVersion version) : base(version, "files")
 {
 }
Exemplo n.º 17
0
 public ObjectTypeTest(TestServerVersion version) : base(version, "objectType")
 {
 }
Exemplo n.º 18
0
 public UrlTests(TestServerVersion version) : base(version)
 {
 }
Exemplo n.º 19
0
 public TestServerTestBase(TestServerVersion version) : this(version, null)
 {
 }
Exemplo n.º 20
0
 public BodyDictionary(TestServerVersion version) : base(version, "dictionary")
 {
 }
Exemplo n.º 21
0
 public HeaderTests(TestServerVersion version) : base(version, "header")
 {
 }
Exemplo n.º 22
0
 public BodyDateTest(TestServerVersion version) : base(version, "date")
 {
 }
 public RequiredOptionalTest(TestServerVersion version) : base(version, "reqopt")
 {
 }
 public SubscriptionIdApiVersionTest(TestServerVersion version) : base(version, "azureUrl")
 {
 }
Exemplo n.º 25
0
 public BodyArray(TestServerVersion version) : base(version, "array")
 {
 }
Exemplo n.º 26
0
 public BodyTimeTest(TestServerVersion version) : base(version, "time")
 {
 }
Exemplo n.º 27
0
 public ModelFlatteningTests(TestServerVersion version) : base(version, "model-flatten")
 {
 }
Exemplo n.º 28
0
 public ValidationTests(TestServerVersion version) : base(version, "validation")
 {
 }
Exemplo n.º 29
0
 public IgnoreOnTestServer(TestServerVersion version, string reason)
 {
     _version = version;
     _reason  = reason;
 }
Exemplo n.º 30
0
 public NonStringEnumTests(TestServerVersion version) : base(version, "nonStringEnums")
 {
 }