public void CreateandRead() { imd = new InMemoryDataStore(); Blab b = new Blab("Generic Saying", "Fake User", System.DateTime.Now); InMemorySpecimen s = new InMemorySpecimen(b.getsysid()); imd.Create(b); Assert.AreEqual(b, imd.Read(s)); }
public void DeleteAndRead() { imd = new InMemoryDataStore(); Blab b = new Blab("Generic Saying", "Fake User", System.DateTime.Now); InMemorySpecimen s = new InMemorySpecimen(b.getsysid()); imd.Create(b); imd.Delete(s); Assert.IsNull(imd.Read(s)); }
public void ModifyAndRead() { imd = new InMemoryDataStore(); Blab b = new Blab("Generic Saying", "Fake User", System.DateTime.Now); InMemorySpecimen s = new InMemorySpecimen(b.getsysid()); imd.Create(b); b.Message = "Specific Saying"; imd.Update(b); Assert.AreEqual(b.Message, ((Blab)imd.Read(s)).Message); }