A mock implementation of IStorage. Not tested, there can be bugs !
Inheritance: IStorage
Exemple #1
0
 public MockUserStorage(MockStorage storage)
 {
     this.Storage      = storage;
     this.IdFromLogin  = new Dictionary <string, Guid>();
     this.UserFromId   = new Dictionary <Guid, MockUser>();
     this.IdFromOpenId = new Dictionary <string, Guid>();
     this.IdFromApiKey = new Dictionary <Guid, Guid>();
 }
Exemple #2
0
 public MockMsgStorage(MockStorage storage)
 {
     this.Storage   = storage;
     this.MsgFromId = new Dictionary <Guid, MockMsg>();
 }
Exemple #3
0
 public MockListStorage(MockStorage storage)
 {
     this.Storage    = storage;
     this.ListFromId = new Dictionary <Guid, MockList>();
 }
Exemple #4
0
 public MockAccountStorage(MockStorage storage)
 {
     this.Storage       = storage;
     this.IdFromName    = new Dictionary <string, Guid>();
     this.AccountFromId = new Dictionary <Guid, MockAccount>();
 }
Exemple #5
0
 public MockUserStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.IdFromLogin = new Dictionary<string, Guid>();
     this.UserFromId = new Dictionary<Guid, MockUser>();
     this.IdFromOpenId = new Dictionary<string, Guid>();
     this.IdFromApiKey = new Dictionary<Guid, Guid>();
 }
Exemple #6
0
 public MockMsgStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.MsgFromId = new Dictionary<Guid, MockMsg>();
 }
Exemple #7
0
 public MockListStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.ListFromId = new Dictionary<Guid, MockList>();
 }
Exemple #8
0
 public MockAccountStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.IdFromName = new Dictionary<string, Guid>();
     this.AccountFromId = new Dictionary<Guid, MockAccount>();
 }