public void RetrieveAllContexts() { EAV.Store.Clients.IContextStoreClient client = factory.Create <EAV.Store.Clients.IContextStoreClient>(); int nDbContexts = this.DbContext.Contexts.Count(); int nClientContexts = client.RetrieveContexts().Count(); Assert.AreEqual(nDbContexts, nClientContexts, "The number of contexts retrieved by the client does not match the number in the database."); }
public IHttpActionResult RetrieveContexts() { try { return(Ok <IEnumerable <EAV.Store.IStoreContext> >(contextClient.RetrieveContexts())); } catch (Exception ex) { return(InternalServerError(ex)); } }