C# how to create singleton class
4/1/2014·4 min read
This'll show how to cteate singleton class' simple version
Singleton is very simple to imprement, but it's better not directory calling, it's more safer to do following way.
So in this way, at least, when you do your unit-test, you could do Interface Injection to change actual imprementation class to your mock class.