Mpdreamz/NEST — Issue #22: IElasticClient
Author: mjwills
Created: 2012-02-27 23:16:46+00:00
State: open

It would be great if NEST's ElasticClient implemented an interface (IElasticClient). This would allow easier mocking for unit tests (i.e. I could mock IElasticClient and then assert that methods were called on it without having to actually impact the real elasticsearch data store).

I have implemented this manually using IElasticSearchWrapper (with a default implementation that just calls the same methods on an ElasticSearch instance) but it would be even better if this worked OOTB.