@@ -607,26 +607,25 @@ public void Shoud_convert_type_changes()
607
607
destItem . DestValue . ShouldBe ( sourceItem . SrcValue ) ;
608
608
}
609
609
610
- [ Fact ]
610
+ [ Fact ( Skip = "Conventions not available like this." ) ]
611
611
public void Shoud_work_with_conventions ( )
612
612
{
613
- var mapper = new MapperConfiguration ( cfg => cfg . AddConditionalObjectMapper ( )
614
- . Where ( ( s , d ) => s . Name == d . Name + "Model" || s . Name + "Model" == d . Name ) ) . CreateMapper ( ) ;
613
+ // var mapper = new MapperConfiguration(cfg => cfg.AddConditionalObjectMapper()
614
+ // .Where((s, d) => s.Name == d.Name + "Model" || s.Name + "Model" == d.Name)).CreateMapper();
615
615
616
616
617
- IQueryable < Destination > result = _source . AsQueryable ( )
618
- . UseAsDataSource ( Mapper ) . For < Destination > ( )
619
- . Where ( s => s . DestValue > 6 ) ;
617
+ // IQueryable<Destination> result = _source.AsQueryable()
618
+ // .UseAsDataSource(Mapper).For<Destination>()
619
+ // .Where(s => s.DestValue > 6);
620
620
621
- result . Count ( ) . ShouldBe ( 1 ) ;
622
- result . Any ( s => s . DestValue > 6 ) . ShouldBeTrue ( ) ;
621
+ // result.Count().ShouldBe(1);
622
+ // result.Any(s => s.DestValue > 6).ShouldBeTrue();
623
623
}
624
624
625
625
private static IMapper SetupAutoMapper ( )
626
626
{
627
627
var config = new MapperConfiguration ( cfg =>
628
628
{
629
- cfg . CreateMissingTypeMaps = false ;
630
629
cfg . CreateMap < User , UserModel > ( )
631
630
. ForMember ( d => d . Id , opt => opt . MapFrom ( s => s . UserId ) )
632
631
. ForMember ( d => d . FullName , opt => opt . MapFrom ( s => s . Name ) )
0 commit comments