protected override void ScenarioSetup()
 {
     ConverterProvider.Setup(instance => instance.FindConverter(It.IsAny <Type>())).Returns(new TestConverter());
     PrimaryEntityMappingProvider   = SetupMappingProviders <IProduct>("Product", "Name", "Price").ToList();
     SecondaryEntityMappingProvider = SetupMappingProviders <IProduct>("Service", "Description", "Name").ToList();
     MappingProviderVisitor.Setup(instance => instance.Visit(It.IsAny <ICollectionMappingProvider>()));
     MappingProviderVisitor.Setup(instance => instance.Visit(It.IsAny <IPropertyMappingProvider>()));
     MappingProviderVisitor.Setup(instance => instance.Visit(It.IsAny <IEntityMappingProvider>()));
     MappingSource.Setup(instance => instance.GatherEntityMappingProviders())
     .Returns(PrimaryEntityMappingProvider.Concat(SecondaryEntityMappingProvider).Select(provider => provider.Object));
 }
 private IEnumerable <Mock <ITermMappingProvider> > MappingsOfType <T>() where T : class, ITermMappingProvider
 {
     return(PrimaryEntityMappingProvider.Concat(SecondaryEntityMappingProvider)
            .Where(item => item.Object is T));
 }