Beispiel #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);
 }
Beispiel #2
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);
     }
 }