mercredi 8 janvier 2020

Testing Neo4jClient queries on .NET Core (transactions not supported)

I've started to write some tests for my Neo4j queries built using Neo4jClient. On normal .NET, transactions are supported in Neo4jClient, which makes testing easy. Unfortunately, it is not yet supported for .NET Core. Does anyone have any suggestions on what could be done instead? I have repositories with quite complex queries, and need a maintainable simple way of testing these without code repetition. At the moment, I simply clear the database before starting each test. Is this the best solution I will be able to get? It is quite slow, and well, I'd like to keep pre-existing data!

Aucun commentaire:

Enregistrer un commentaire