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