public void Setup() { ConverterProvider = new Mock <IConverterProvider>(MockBehavior.Strict); MappingProviderVisitor = new Mock <IMappingProviderVisitor>(MockBehavior.Strict); MappingSource = new Mock <IMappingSource>(MockBehavior.Strict); Builder = new DefaultMappingBuilder(ConverterProvider.Object, Array.Empty <QIriMapping>(), new[] { MappingProviderVisitor.Object }); ScenarioSetup(); TheTest(); }
public void Setup() { var converters = new ILiteralConverter[] { new StringConverter(), new DecimalConverter(), new IntegerConverter(), new TestConverter(), new FloatingPointLiteralConverter(), new UntypedLiteralConverter() }; var converterProvider = new DefaultConverterProvider(converters); var mappingProviderVisitors = new IMappingProviderVisitor[] { new CollectionStorageModelConventionVisitor(), new ConverterConventionVisitor(converterProvider) }; Builder = new DefaultMappingBuilder(converterProvider, new QIriMapping[0], mappingProviderVisitors); OpenGenericMappingProviders = new Dictionary <Type, ICollection <ITermMappingProvider> >(); TheTest(); }