A mock implementation of IStorage. Not tested, there can be bugs !
Inheritance: IStorage
Beispiel #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>();
 }
Beispiel #2
0
 public MockMsgStorage(MockStorage storage)
 {
     this.Storage   = storage;
     this.MsgFromId = new Dictionary <Guid, MockMsg>();
 }
Beispiel #3
0
 public MockListStorage(MockStorage storage)
 {
     this.Storage    = storage;
     this.ListFromId = new Dictionary <Guid, MockList>();
 }
Beispiel #4
0
 public MockAccountStorage(MockStorage storage)
 {
     this.Storage       = storage;
     this.IdFromName    = new Dictionary <string, Guid>();
     this.AccountFromId = new Dictionary <Guid, MockAccount>();
 }
Beispiel #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>();
 }
Beispiel #6
0
 public MockMsgStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.MsgFromId = new Dictionary<Guid, MockMsg>();
 }
Beispiel #7
0
 public MockListStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.ListFromId = new Dictionary<Guid, MockList>();
 }
Beispiel #8
0
 public MockAccountStorage(MockStorage storage)
 {
     this.Storage = storage;
     this.IdFromName = new Dictionary<string, Guid>();
     this.AccountFromId = new Dictionary<Guid, MockAccount>();
 }