The viewmodel uses the
IEbayClient instance to query the eBay OData service. The viewmodel exposes two commands:
SearchCommand—Triggered by entering text into a
TextBox in the view, this command calls the
Search method, which calls the
FetchMoreDataCommand—This command allows the search results to be paged.
The commands are initialized in the
EbaySearchViewModel constructor, which is shown in the following excerpt:
public EbaySearchViewModel( Func ...