public async override Task <IList <Customer> > GetItemsAsync(string userToken, bool markAsViewed) { using (db = new RemoteCustomerContext()) { var customers = db.Customers .Select(rc => RemoteCustomerToCustomer(rc)) .ToList(); logger.Debug(String.Format("GetCustomers: {0}", customers.Dump())); foreach (var c in customers) { await this.MarkAsViewedAsync(c, userToken); } return(customers); } }
protected async override Task SetupAsync() { db = new RemoteCustomerContext(); }