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()); }
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; } }