예제 #1
0
 public DataServiceFactory(ILocationContextFactory dataContextFactory,
                           IAppSettingsProvider appSettingsProvider,
                           IWebClient webClient,
                           IBitmapConverter bitmapConverter,
                           IMiniaturesCache miniaturesCache)
 {
     _dataContextFactory  = dataContextFactory;
     _appSettingsProvider = appSettingsProvider;
     _webClient           = webClient;
     _bitmapConverter     = bitmapConverter;
     _miniaturesCache     = miniaturesCache;
 }
예제 #2
0
 private void SetUp()
 {
     _factory = Substitute.For <ILocationContextFactory>();
     _context = Substitute.For <ILocationContext>();
     _factory.Create().Returns(_context);
 }
예제 #3
0
 public LocationDataService(ILocationContextFactory dataContextFactory)
 {
     _dataContextFactory = dataContextFactory;
 }