protected override void Context()
 {
     _serializer           = A.Fake <IXmlSerializer <TestSerializationContext> >();
     _propertyMap          = A.Fake <IPropertyMap>();
     _serializerRepository = A.Fake <IXmlSerializerRepository <TestSerializationContext> >();
     sut      = new XmlStaticMapper <TObject, TestSerializationContext>(_serializerRepository, _serializer, _propertyMap);
     _context = new TestSerializationContext();
 }
コード例 #2
0
        protected override void Context()
        {
            _serializerRepository      = new XmlSerializerRepository <TestSerializationContext>();
            _attributeMapperRepository = new AttributeMapperRepository <TestSerializationContext>();
            _attributeMapperRepository.AddDefaultAttributeMappers();
            _projectToSerialize          = new Project(2);
            _projectToSerialize.Compound = new Compound("1")
            {
                Name = "toto", CompoundType = "acid"
            };

            _projectToSerialize.Name = "Toto";
            _context = new TestSerializationContext();
        }
コード例 #3
0
 protected override void Context()
 {
     sut      = new BoolAttributeMapper <TestSerializationContext>();
     _context = new TestSerializationContext();
 }
 protected override void Context()
 {
     sut      = new NullableDoubleAttributeMapper <TestSerializationContext>();
     _context = new  TestSerializationContext();
 }
 protected override void Context()
 {
     _context = new TestSerializationContext();
 }