コード例 #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);
        }
コード例 #2
0
 public SubscriberRepository(WeightWatchersContext watchersContext,
                             IMapper mapper)
 {
     _context = watchersContext;
     _mapper  = mapper;
 }