2014-03-26 17:55:02 -03:00
|
|
|
|
|
|
|
|
var FakeStorage = function(){
|
|
|
|
|
this.storage = {};
|
|
|
|
|
};
|
|
|
|
|
|
2014-04-09 14:30:12 -03:00
|
|
|
FakeStorage.prototype.set = function (id, payload) {
|
|
|
|
|
this.storage[id] = payload;
|
2014-03-26 17:55:02 -03:00
|
|
|
};
|
|
|
|
|
|
2014-04-09 14:30:12 -03:00
|
|
|
FakeStorage.prototype.get = function(id) {
|
|
|
|
|
return this.storage[id];
|
2014-03-26 17:55:02 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
module.exports = require('soop')(FakeStorage);
|