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 CosmosDB() { var t = test.TestCosmos(this.cosmosTestData); var result = new TestResult { Passed = t.Passed, Status = t.Status }; return(result); }