public void RetrieveAllEntities() { EAV.Store.Clients.IEntityStoreClient client = factory.Create <EAV.Store.Clients.IEntityStoreClient>(); int nDbEntities = this.DbContext.Entities.Count(); int nClientEntities = client.RetrieveEntities().Count(); Assert.AreEqual(nDbEntities, nClientEntities, "The number of entities retrieved by the client does not match the number in the database."); }
public IHttpActionResult RetrieveEntities() { try { return(Ok <IEnumerable <EAV.Store.IStoreEntity> >(entityClient.RetrieveEntities())); } catch (Exception ex) { return(InternalServerError(ex)); } }