Testing with Entity Framework dbContext, and NoTracking option

This posting is provided “AS IS” with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm During unit or integration tests, which involve database modifications, the following pattern is often utilized – var preChangeIntroducedValue = GetValueFromDB(); // introduce change var postChangeIntoroducedValue = GetValueFromDB(); // Assert…