开发者

Create Mock objects from XML

开发者 https://www.devze.com 2023-01-29 02:53 出处:网络
Is it possible using Mock Framework to create and return object based on XML data fil开发者_Go百科e

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

精彩评论

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