Exemple #1
0
        public void ApiLogic_ApiScanResult_JSONString_ResponseValid()
        {
            // Arrange
            // Act
            var result = ApiLogic.ApiScanResult(JSON_RESULT);

            // Assert
            Assert.That(result.GetType(), Is.EqualTo(typeof(ApiScanResult)));
        }
Exemple #2
0
        public void StatusLogic_AnalyseApiResults_CorrectResultsReturned()
        {
            // Arrange
            ApiScanResult results     = ApiLogic.ApiScanResult(JSON_RESULT);
            StatusLogic   statusLogic = new StatusLogic();
            // Act
            Dictionary <string, AsafaResult> analysedResults = statusLogic.AnalyseResults(results);

            // Assert
            Assert.That(analysedResults.Count, Is.EqualTo(5));
        }