public void LoadWithFilter_Null() { var target = GetTarget(); var query = new GetInvoicesByFilter(); var result = target.Filter(query); Assert.IsNull(result); }
public Task <List <InvoiceModel> > Load(GetInvoicesByFilter query) { if (null == query) { return(null); } var invoices = LoadFromService(query.MemberId, query.Locale, query.InvoiceFilterModel != null ? query.InvoiceFilterModel.From : null, query.InvoiceFilterModel != null ? query.InvoiceFilterModel.To : null); return(invoices); }
public Task <List <InvoiceModel> > Load(GetInvoicesByFilter query) { return(Task.FromResult(new List <InvoiceModel>())); }
public Task <List <InvoiceModel> > Filter(GetInvoicesByFilter query) { throw new NotImplementedException(); }