public void ExcuteBoundAction() { var contextWrapper = this.CreateWrappedContext(); contextWrapper.Context.MergeOption = MergeOption.OverwriteChanges; Employee employee = (Employee)contextWrapper.Context.Person.Where(p => p.PersonId == 0).Single(); Assert.AreEqual(85, employee.Salary); employee.UpdatePersonInfo(); SpecialEmployee specialEmployee = (SpecialEmployee)contextWrapper.Context.Person.Where(p => p.PersonId == -7).Single(); int salary = specialEmployee.IncreaseEmployeeSalary().GetValue(); Assert.AreEqual(2016141257, salary); specialEmployee.IncreaseEmployeeSalary().GetValue(); specialEmployee = (SpecialEmployee)contextWrapper.Context.Person.Where(p => p.PersonId == -7).Single(); Assert.AreEqual(2016141258, specialEmployee.Salary); }