Ejemplo n.º 1
0
        public void ResultFormatIsSet_SetsResultFormatInBody(ScanResultFormat resultFormat, string expectedResult)
        {
            var request = new ScanQueryDescriptor()
                          .ResultFormat(resultFormat)
                          .Generate();

            Assert.That(request.RequestData.ResultFormat, Is.EqualTo(expectedResult));
        }
Ejemplo n.º 2
0
        public IScanQueryDescriptor ResultFormat(ScanResultFormat resultFormat)
        {
            switch (resultFormat)
            {
            case ScanResultFormat.List:
                ResultFormatValue = "list";
                break;

            case ScanResultFormat.CompactedList:
                ResultFormatValue = "compactedList";
                break;
            }
            return(this);
        }