示例#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);
     }
 }