public void SetUp() { dataMapper = new MtgJsonMapper(searchUtilityMock.Object); dataMapper.ImageUrl = "http://localhost/%ID%.jpg"; dataMapper.ImageHiResUrl = "http://localhost/%ID%.jpg"; }
public void SetUp() { unitTestContext = new UnitTestContext(); dataMapper = new MtgJsonMapper(unitTestContext.SearchUtilityMock.Object); dataMapper.ImageUrl = "http://localhost/%ID%.jpg"; dataMapper.ImageHiResUrl = "http://localhost/%ID%.jpg"; }
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; }
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; }