Incorrect behaviour of the method AutoMapper.Configuration.FindTypeMap(object, Type, Type) when sourceType implements more than one interface
description
typeMap local variable is always overwritten.
For example, typeMap which is not null, was found on the first iteration of the foreach loop. Then on the second iteration after execution of the following line
typeMap = ((IConfigurationProvider)this).FindTypeMapFor(source, sourceInterface, destinationType);
typeMap becomes null. So even if one typeMap was found which is not null, the method will return null if subsequent calls to FindTypeMapFor return null.