Exemple #1
0
        public ActionResult NoSQL(CosmosTestData data)
        {
            var             test   = new TestProcessor();
            NoSQLTestResult result = new NoSQLTestResult()
            {
                Ignore = false
            };

            if (TestType.TestCosmosDB && TestType.TestSearch)
            {
                var cosmosDBResult = test.TestCosmos(data);
                var searchResult   = test.TestSearch(data);
                result = new NoSQLTestResult(cosmosDBResult, searchResult);
            }
            else if (TestType.TestCosmosDB)
            {
                result = test.TestCosmos(data);
            }
            else
            {
                result = test.TestSearch(data);
            }
            result.Ignore  = false;
            ViewBag.Result = result;
            return(View(data));
        }
        public TestResult Search()
        {
            var t      = test.TestSearch(this.cosmosTestData);
            var result = new TestResult {
                Passed = t.Passed, Status = t.Status
            };

            return(result);
        }