Пример #1
0
 public StoreServiceFixture()
 {
     _client = Substitute.For <IStoreApiClient>();
     _client
     .GetStores(Arg.Any <bool>())
     .Returns(Observable.Return(new List <StoreDto> {
         StoreDto.Default
     }));
 }
Пример #2
0
 public IObservable <IEnumerable <StoreDto> > GetStores(bool forceUpdate = true) =>
 _apiClient
 .GetStores(forceUpdate)
 .AddOrUpdate(_stores);