public static void Main(string[] args) { // pull from rollcall vote as the basis for votes, sessions and senators // fill in missing details from senate and vote summary calls SenateMemberService service = new SenateMemberService(); for (int x = 101; x <= 113; x++) { IEnumerable<Senator> senators = service.GetCurrentSenatorsAsync().Result; Session session1 = service.GetVoteSummaryAsync(x.ToString(), "1").Result; Session session2 = service.GetVoteSummaryAsync(x.ToString(), "2").Result; int x1 = x; /*session1.Votes.ForEach(v => { Vote rollCall1 = service.GetRollCallVote(x1.ToString(), "1", v.VoteNumber); }); int x2 = x; session2.Votes.ForEach(v => { Vote rollCall2 = service.GetRollCallVote(x2.ToString(), "2",v.VoteNumber); });*/ } }
public void TestSenateMemberServiceGetsCurrentSenators() { SenateMemberService service = new SenateMemberService(); IEnumerable<Senator> senators = service.GetCurrentSenatorsAsync().Result; }