-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from lafritay/taylor/mocks
Allow ProPublicaCongressApiClient to be mocked
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
using ProPublicaCongressAPI.Contracts; | ||
|
||
namespace ProPublicaCongressAPI | ||
{ | ||
public interface IProPublicaCongressApiClient | ||
{ | ||
Task<MemberBillSponsorshipComparisonContainer> CompareMemberBillSponsorships(string firstMemberId, string secondMemberId, int congress, Chamber chamber); | ||
Task<IReadOnlyCollection<MemberVoteComparison>> CompareMemberVotes(string firstMemberId, string secondMemberId, int congress, Chamber chamber); | ||
Task<BillCosponsorContainer> GetBillCosponsors(int congress, string billId); | ||
Task<MemberBillsCosponsoredContainer> GetBillsCosponsoredByMember(string memberId, CosponsorBillType type); | ||
Task<CommitteesContainer> GetCommitttees(int congress, Chamber chamber); | ||
Task<IReadOnlyCollection<CurrentMember>> GetCurrentMembersAsync(Chamber chamber, string state, int? district = null); | ||
Task<Member> GetMemberAsync(string memberId); | ||
Task<MembersContainer> GetMembersAsync(int congress, Chamber chamber); | ||
Task<MemberVotesContainer> GetMemberVotesAsync(string memberId); | ||
Task<NewMembersContainer> GetNewMembersAsync(); | ||
Task<IReadOnlyCollection<NomineeByState>> GetNomineesByState(int congress, string state); | ||
Task<RecentBillsContainer> GetRecentBills(int congress, Chamber chamber, RecentBillType billType, int? offset = null); | ||
Task<RecentBillsByMemberContainer> GetRecentBillsByMember(string memberId, RecentBillByMemberType billType, int? offset = null); | ||
Task<IReadOnlyCollection<RecentNomination>> GetRecentNominations(int congress, RecentNominationType nominationType); | ||
Task<SenateNominationVoteContainer> GetSenateNominationVotes(int congress); | ||
Task<SpecificBill> GetSpecificBill(int congress, string billId); | ||
Task<SpecificBillDetail> GetSpecificBillDetail(int congress, string billId, SpecificBillDetailType billDetailType); | ||
Task<SpecificCommittee> GetSpecificCommittee(int congress, Chamber chamber, string committeeId); | ||
Task<SpecificNomination> GetSpecificNomination(int congress, string nominationId); | ||
Task<RollCallVote> GetSpecificRollCallVote(int congress, Chamber chamber, Session session, int rollCallNumber); | ||
Task<VoteByDateContainer> GetVotesByDate(Chamber chamber, int year, int month); | ||
Task<VoteByTypeContainer> GetVotesByType(int congress, Chamber chamber, VoteAggregateCategory voteType); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters