Esempio n. 1
0
            public void SetUp()
            {
                _modelMapper = new ModelMapper();

                _componentRegistrationTarget = RegistrationBuilder
                    .ForType(typeof(object))
                    .CreateRegistration();

                _componentRegistration = RegistrationBuilder
                    .ForType(typeof(string))
                    .WithMetadata(MetadataKey, MetadataValue)
                    .Targeting(_componentRegistrationTarget)
                    .CreateRegistration();

                TypeModel unused;
                _modelMapper.GetOrAddTypeModel(typeof(object), out unused);
                _modelMapper.GetOrAddTypeModel(typeof(string), out unused);
                _componentModel = _modelMapper.GetComponentModel(_componentRegistration);
            }
 public ComponentAddedMessage(ComponentModel component)
 {
     _component = component;
 }