开发者

Unity Service Locator: Is there a supplied way to test configuration is valid?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜