In StructureMap there is a way to test your configuration is valid calling StructureMap.ObjectFactory:
Is there an equivalent for this in Unity?
[Test]
public void Test_Struct开发者_运维百科ureMap_Configuration_IsValid()
{
LocalConfiguration.ConfigureStructureMap();
ObjectFactory.AssertConfigurationIsValid();
}
No, that feature is unique to StructureMap as far as I know.
精彩评论