Exemplo n.º 1
0
 public async Task TestGetVoteSummary()
 {
     try
     {
         List <VoteResult> ans = (await voteRepository.GetVoteSummary(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);
     }
 }