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