SetDataMapper() public method

sets the dataMapper for the targetType
public SetDataMapper ( Type targetType, IDataMapper dataMapper ) : void
targetType System.Type
dataMapper IDataMapper
return void
 public void SetDataMapper_ShouldSetMapperForType()
 {
     //---------------Set up test pack-------------------
     var factory = new DataMapperFactory();
     var targetType = typeof(Image);
     var expectedDataMapper = new GuidDataMapper();
     //---------------Execute Test ----------------------
     factory.SetDataMapper(targetType, expectedDataMapper);
     //---------------Test Result -----------------------
     Assert.AreSame(expectedDataMapper, factory.GetDataMapper(targetType));
 }