tynor88 / Topshelf.SimpleInjector

Put your apps on the Topshelf, with the power of SimpleInjector & Quartz.NET!
MIT License
13 stars 14 forks source link

Unit test throws (and hides) NullException due to SimpleInjectorHostBuilderConfigurator.Container being static #6

Closed tohagan closed 8 years ago

tohagan commented 8 years ago

Looks a bit weird that the constructor is used to initialise a static value.

tynor88 commented 8 years ago

Any reason why this was closed again?

Please let me know which test you are talking about, and i will have a look at it.

tohagan commented 8 years ago

Will be back in the office tomorrow so will try to remember to recheck this.

tynor88 commented 8 years ago

All unit tests now runs in a new AppDomain due to Topshelf being Static. Should fix any issues with running the Tests.

See commit: https://github.com/tynor88/Topshelf.SimpleInjector/commit/f0b272ccf9c5d1b989e78507482d6e84abd60b37