public void Execute()
        {
            List <ResultItem> results =
                new PropertyStartingWithTypeRule(openApiContract, supressions, ruleSettings, cache).Execute();

            Assert.Equal(
                "path:/path-two,method:get,response:200,content:application/json,response.property:data.intPropertyOne",
                results[0].Value);

            Assert.Equal(
                "path:/path-two,method:get,response:200,content:application/json,response.property:data.flagUpdated",
                results[1].Value);

            Assert.True(new PropertyStartingWithTypeRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute()
                        .Count == 0);
        }
Esempio n. 2
0
        public void Execute()
        {
            List <ResultItem> results =
                new PropertyStartingWithTypeRule(openApiContract, supressions, ruleSettings, cache).Execute();

            Assert.Equal(
                "Path='/path-two',Operation='get',ResponseCode='200',Content='application/json',PropertyFull='data.intPropertyOne',Property='intPropertyOne'",
                results[0].Value);

            Assert.Equal(
                "Path='/path-two',Operation='get',ResponseCode='200',Content='application/json',PropertyFull='data.flagUpdated',Property='flagUpdated'",
                results[1].Value);

            Assert.True(new PropertyStartingWithTypeRule(openApiContract, supressionEntireRule, ruleSettings, cache).Execute()
                        .Count == 0);
        }