Exemplo n.º 1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            var passed    = 0;
            var failed    = 0;
            var executed  = 0;
            var testsList = TestsController.GetTests(servicenameList.SelectedValue.ToString());

            foreach (var item in testsList)
            {
                var testExecuted = TestsController.GetSOAPResponse(item.Uri, item.Request, User, null);
                executed = executed + 1;
                if (testExecuted.Response == item.Response)
                {
                    passed = passed + 1;
                }
                else
                {
                    failed = failed + 1;
                }
            }
            testeExecutate.Content = executed;
            testeFailed.Content    = failed;
            testePassed.Content    = passed;
        }