private IServiceMap DefaultMap()
 {
     return(ServiceMap.Create(x =>
     {
         return GetType().Assembly == x.Assembly;
     }, _mapper.Object));
 }
 public void DoesNotCrash()
 {
     ServiceMap.Create(x =>
     {
         return(GetType().Assembly == x.Assembly);
     }, _subject).Map();
 }
        public void Maps_all_from_specific_assembly_ignored()
        {
            ServiceMap.Create(typeof(ITest).Assembly, x => { return(GetType().Assembly == x.Assembly); }, _mapper.Object).Map();

            _mapper.Verify(x => x.Map(It.IsAny <Map>()), Times.AtLeast(2));
            Assert.That(maps.Any(x => x.Type == typeof(ITest)), Is.True);
            Assert.That(maps.Any(x => x.Type == typeof(ITest2)), Is.True);
        }