开发者

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

开发者 https://www.devze.com 2023-01-26 21:16 出处:网络
In StructureMap there is a way to test your configuration is valid calling StructureMap.ObjectFactory:

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

精彩评论

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

关注公众号