Пример #1
0
 public void TestSolutionApi()
 {
     const int id = 1;
     var coticulaApi = new CoticulaApi();
     var solution = coticulaApi.Solution(id);
     Assert.NotNull(solution);
     Assert.AreEqual(id, solution.Id);
 }
Пример #2
0
 public void TestResultApi()
 {
     const int id = 2;
     const int verdictId = 1;
     var result = new Result { Id = id, VerdictId = verdictId };
     var coticulaApi = new CoticulaApi();
     coticulaApi.Result(result);
 }
Пример #3
0
 public void TestUntested()
 {
     var coticulaApi = new CoticulaApi();
     var ids = coticulaApi.Untested();
     foreach (var id in ids)
     {
         var solution = coticulaApi.Solution(id);
         var result = new Result { Id = solution.Id, VerdictId = 2 };
         coticulaApi.Result(result);
     }
 }