public void RetrieveAllValues() { EAV.Store.Clients.IValueStoreClient client = factory.Create <EAV.Store.Clients.IValueStoreClient>(); int nDbValues = this.DbContext.Values.Count(); int nClientValues = client.RetrieveValues(null, null).Count(); Assert.AreEqual(nDbValues, nClientValues, "The number of values retrieved by the client does not match the number in the database."); }
public IHttpActionResult RetrieveValues(int id) { try { return(Ok <IEnumerable <EAV.Store.IStoreValue> >(valueClient.RetrieveValues(AttributeID, id))); } catch (Exception ex) { return(InternalServerError(ex)); } }