public StoreServiceFixture() { _client = Substitute.For <IStoreApiClient>(); _client .GetStores(Arg.Any <bool>()) .Returns(Observable.Return(new List <StoreDto> { StoreDto.Default })); }
public IObservable <IEnumerable <StoreDto> > GetStores(bool forceUpdate = true) => _apiClient .GetStores(forceUpdate) .AddOrUpdate(_stores);