示例#1
0
        //in order to test
        public SubscriberRepository(WeightWatchersContext watchersContext)
        {
            _context = watchersContext;
            var mappingConfig = new MapperConfiguration(mc =>
            {
                mc.AddProfile(new MappingProfiler());
            });

            _mapper = new Mapper(mappingConfig);
        }
 public SubscriberRepository(WeightWatchersContext watchersContext,
                             IMapper mapper)
 {
     _context = watchersContext;
     _mapper  = mapper;
 }