예제 #1
0
 public void VerifyMap_AllMembersAccounted_NoException()
 {
     _collection.Ignore(c => c.Child);
     _collection.Ignore(c => c.Property1);
     _collection.Ignore(c => c.Property2);
     _collection.Ignore(c => c.Property3);
     Assert.DoesNotThrow(() => _collection.VerifyMap());
 }
예제 #2
0
 public void Initialize()
 {
     if (!Initialized)
     {
         var mappingCollection = new MappingCollection <TFrom, TTo, TContext>(_mapper);
         foreach (var @override in _override)
         {
             @override(mappingCollection);
         }
         _override.Clear();
         mappingCollection.DoAutomapping();
         mappingCollection.VerifyMap();
         _mapStatement = _mapper.Builder.BuildAction(mappingCollection);
         Initialized   = true;
     }
 }