Setting DependencyResolver to null in test constructor. This is done in order to have a brand new DI container for each test class, otherwise the same container with incorrectly binded interfaces might be reused in other logic. Though when running tests from MStest it actually can never happen.