wallet model basic functions (WIP)

This commit is contained in:
Matias Alejo Garcia 2014-03-26 17:55:02 -03:00
commit 3bf02173c5
3 changed files with 138 additions and 25 deletions

14
test/FakeStorage.js Normal file
View file

@ -0,0 +1,14 @@
var FakeStorage = function(){
this.storage = {};
};
FakeStorage.prototype.read = function (id) {
return this.storage[id];
};
FakeStorage.prototype.save = function(id, payload) {
this.storage[id] = payload;
}
module.exports = require('soop')(FakeStorage);