`DailyStore` phase one
Closed this issue · 5 comments
NicholasTD07 commented
Store takes a APIType, easier to inject despondency, easier to test.
NicholasTD07 commented
thought:
Make a protocol for DailyAPI
which uses associated type to define handlers
DailyStore
conforms to protocol.
NicholasTD07 commented
NicholasTD07 commented
From commit 376eedc: Add DailyInMemoryStore
, not happy with it
Mainly because of the way it is tested.
The test/code radio is just so high... It looks so cumbersome...Is there something that I am doing wrong?
Maybe it's because I don't know how to implement store.
I will spike it first and then add the spec for its behaviour.
PS.
Well not a fully implemented DailyInMemStore
yet.
NicholasTD07 commented
- add spec for when there's something in store
NicholasTD07 commented
Commits in feature/Daily-Store-take-2:
- testable(non-private) properties to be tested 67ddbf6
- Extract timeout in
expect.toEventuallyNot
to a variable 015d660 - Xcode 7 + Swift 2 = AWESOME! (testable) f635059
- Update for Swift 2.0 YEAH!!!!1! 5014eb4
- Add
DailyInMemoryStore
withlatestDaily
,daily
andnews
bb84bef
InMemStore is complete now, well, for major stuff(Daily
, News
).