public void Update(DalTestResult entity)
 {
     TestResult t = context.Set<TestResult>().Where(tr => tr.TestId == entity.TestId && tr.UserId == entity.UserId).First();
     t.IsPassed = entity.IsPassed;
     t.Result = entity.Result;
     t.TestId = entity.TestId;
     t.TestTitle = entity.TestTitle;
     t.UserId = entity.UserId;
 }
 public void Delete(DalTestResult e)
 {
     throw new NotImplementedException();
 }
 public void Create(DalTestResult e)
 {
     context.Set<TestResult>().Add(e.ToTestResult());
 }