开发者

Create Mock objects from XML

Is it possible using Mock Framework to create and return object based on XML data fil开发者_Go百科e

var onlineUser = new Mock<IOnlineUser>();
onlineUser.Setup(o => o.UserIdentity).Returns(person);

the person object should be constructed using XML data

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜