title: Database does not return proper data in unit test
body: <p>I am having an application for unit test. When I run the tests individually all tests behave as expected, but when I run the tests of a class altogther there are several errors.</p>
  
  <p>I have a method for testing updated entries.
  When I see the database the entry has been updated but when I fetch same data at the same time it returns previous value.</p>
  
  <p>Following is my code</p>
  
  <pre><code> //Arrange
          var Model = new Model() {
              Id = 1, 
              CategoryId = 1, 
              Host = "http://www.test1234567890host.com", 
              IsDeleted = false, 
              Title = "TestTitle1234567890test",
              Keywords = "TestKeywords1234567890test"
          };
          //Act
          var result = controller.Edit(Model) as RedirectToRouteResult;
  
          //Assert
          Assert.IsTrue(Test.Sets.Any(x =&gt; x.Id == 1));
          var SetAfter = Test.Sets.Find(1);
          Assert.AreEqual("http://www.test1234567890host.com", SetAfter.Host);
  </code></pre>
  
  <p>Host is always null even after the value has been updated in the database.</p>
  
  <p>Can anybody help me?</p>