Esempio n. 1
0
 protected override void Context()
 {
     base.Context();
     _individual = A.Fake <Individual>();
     _converter  = A.Fake <IObjectConverter>();
     A.CallTo(() => _xmlReaderIndividual.ReadFrom(A <XElement> ._, _serializationContext)).Returns(_individual);
     A.CallTo(() => _objectConverterFinder.FindConverterFor(ProjectVersions.V5_0_1)).Returns(_converter);
     _element = new XElement("Individual");
     _element.AddAttribute(CoreConstants.Serialization.Attribute.XmlVersion, ProjectVersions.V5_0_1.VersionAsString);
     A.CallTo(() => _converter.Convert(_individual, ProjectVersions.V5_0_1)).Returns(ProjectVersions.Current);
     A.CallTo(() => _converter.ConvertXml(A <XElement> ._, ProjectVersions.V5_0_1)).Returns(ProjectVersions.Current);
 }