public void GenericTools_Data_MemoryDatabase() { var db = new MemoryDatabase <SampleModel>(); db.Add(new SampleModel()); db.Add(new SampleModel { Age = 17 }); db.Add(new SampleModel { Type = ModelType.Test }); MakeSure.That(db.Count).Is(3); MakeSure.That(db.Get(i => i.Age == 17).Age).Is(17); MakeSure.That(db.GetAll(i => i.Type == ModelType.Sample).Count()).Is(2); }