# Creating integration tests with Elastic.net and Nest

**URL:** <https://discuss.elastic.co/t/creating-integration-tests-with-elastic-net-and-nest/37544>\
**Category:** Elasticsearch\
**Created:** [December 18, 2015, 7:56am UTC](https://discuss.elastic.co/t/creating-integration-tests-with-elastic-net-and-nest/37544 "2015-12-18T07:56:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanFarrow](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@SeanFarrow](https://discuss.elastic.co/u/SeanFarrow)\
**Post date:** [December 18, 2015, 7:56am UTC](https://discuss.elastic.co/t/creating-integration-tests-with-elastic-net-and-nest/37544/1 "2015-12-18T07:56:40Z")

</div>

Hi,

I am in the process of writing an application using Elastic, using the .net clients. I am trying to do some integration testing and having looked at the source code am wondering how the NEST integration tests spin up a cluster, or do they assume a cluster is already available?  
Any help appreciated.  
Kind regards  
Sean

---

<div class="post-metadata">

**Author:** ![John\_D\_Ament](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_d_ament/32/764_2.png) [@John\_D\_Ament](https://discuss.elastic.co/u/John_D_Ament)\
**Post date:** [December 20, 2015, 8:28pm UTC](https://discuss.elastic.co/t/creating-integration-tests-with-elastic-net-and-nest/37544/2 "2015-12-20T20:28:23Z")

</div>

They connect to a separate standalone cluster, there is no embedded option in .net. You can see examples in the integration test directory [https://github.com/elastic/elasticsearch-net/tree/develop/src/Tests/Nest.Tests.Integration](https://github.com/elastic/elasticsearch-net/tree/develop/src/Tests/Nest.Tests.Integration)

---

<div class="post-metadata">

**Author:** ![SeanFarrow](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@SeanFarrow](https://discuss.elastic.co/u/SeanFarrow)\
**Post date:** [December 20, 2015, 9:04pm UTC](https://discuss.elastic.co/t/creating-integration-tests-with-elastic-net-and-nest/37544/3 "2015-12-20T21:04:58Z")

</div>

Hi John,

Thanks for this. I’ve looked and found the tests, but can’t find anywhere the cluster is started/shut down. Do the tests assume a running cluster?  
If not can you point me to the code file that performs start up/shut down?  
Cheers  
Sean.  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/f464dd1c7c382c015b3fc53eebe1cd1aadffee61.jpg)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:29pm UTC](https://discuss.elastic.co/t/creating-integration-tests-with-elastic-net-and-nest/37544/4 "2017-07-05T23:29:43Z")

</div>


