Exemplo n.º 1
0
 public async Task TestGetAllByElectionId()
 {
     try
     {
         List <Vote> ans = (await voteRepository.GetAllByElectionId(Context, DefaultElectionId)).ToList();
         if (ans != null)
         {
             Assert.IsNotNull(ans, "Expected Vote from default dataset - Save a ballot to get votes back!");
         }
     }
     catch (Exception ex)
     {
         Assert.IsNull(ex, "Exception Thrown: " + ex.Message);
     }
 }