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
精彩评论