public IDiaryPage Get(object id)
 {
     return(DbMock.GetDb().Single(s => s.Id == (long)id));
 }
 public void Delete(IDiaryPage entity)
 {
     DbMock.GetDb().ToList().Remove(entity);
 }
 public void Update(IDiaryPage entity)
 {
     DbMock.GetDb().ToList().Remove(entity);
     DbMock.GetDb().ToList().Add(entity);
 }
 public void Save(IDiaryPage entity)
 {
     DbMock.GetDb()
     .ToList()
     .Add(entity);
 }
 public IQueryable <IDiaryPage> Get(Expression <Func <IDiaryPage, bool> > wherePredicate)
 {
     return(DbMock.GetDb().AsQueryable().Where(wherePredicate));
 }
 public IQueryable <IDiaryPage> GetAll()
 {
     return(DbMock.GetDb().AsQueryable());
 }