You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model::Fetch() has a mostly empty implementation. It should download a model from the fuel server if that model doesn't already exist on disk. Saving to disk would require implementing LocalCache::SaveModel and making sure Model has access to the FuelClient instance of LocalCache.
In order to make it possible to test the library with a mock REST class, ModelPrivate must be given an instance of REST and LocalCache classes from FuelClient, which may be difficult. The instances might have to pass through ModelIter or LocalCache when so they can be given to created Model instances.
The text was updated successfully, but these errors were encountered:
Original report (archived issue) by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).
Model::Fetch()
has a mostly empty implementation. It should download a model from the fuel server if that model doesn't already exist on disk. Saving to disk would require implementingLocalCache::SaveModel
and making sureModel
has access to theFuelClient
instance ofLocalCache
.In order to make it possible to test the library with a mock REST class,
ModelPrivate
must be given an instance ofREST
andLocalCache
classes fromFuelClient
, which may be difficult. The instances might have to pass throughModelIter
orLocalCache
when so they can be given to createdModel
instances.The text was updated successfully, but these errors were encountered: