Пример #1
0
        public void SetUp()
        {
            dataMapper = new MtgJsonMapper(searchUtilityMock.Object);

            dataMapper.ImageUrl      = "http://localhost/%ID%.jpg";
            dataMapper.ImageHiResUrl = "http://localhost/%ID%.jpg";
        }
Пример #2
0
        public void SetUp()
        {
            unitTestContext = new UnitTestContext();

            dataMapper = new MtgJsonMapper(unitTestContext.SearchUtilityMock.Object);

            dataMapper.ImageUrl      = "http://localhost/%ID%.jpg";
            dataMapper.ImageHiResUrl = "http://localhost/%ID%.jpg";
        }
Пример #3
0
        public MtgJsonReader(
            IMtgDataMapper <MtgJsonCard, MtgJsonSet> dataMapper,
            ILoggingService loggingService)
        {
            if (dataMapper == null)
            {
                throw new ArgumentNullException("dataMapper");
            }

            if (loggingService == null)
            {
                throw new ArgumentNullException("loggingService");
            }

            this.mDataMapper     = dataMapper;
            this.mLoggingService = loggingService;
        }
Пример #4
0
        public MtgJsonReader(
            string fileName,
            IMtgDataMapper <MtgJsonCard, MtgJsonSet> dataMapper,
            ILoggingService loggingService)
        {
            if (string.IsNullOrEmpty(fileName))
            {
                throw new ArgumentException("fileName");
            }

            if (dataMapper == null)
            {
                throw new ArgumentNullException("dataMapper");
            }

            if (loggingService == null)
            {
                throw new ArgumentNullException("loggingService");
            }

            this.mFileName       = fileName;
            this.mDataMapper     = dataMapper;
            this.mLoggingService = loggingService;
        }