title: Unit Test Fails for Unit Of Work Test
body: <p>This is my test:</p>
  
  <pre><code>[TestMethod]
  public void TestUnitOfWork()
  {
      UnitOfWork unitOfWork = new UnitOfWork();
  
      unitOfWork.ContactRepository.Insert(new Contact
      {
          Id = Guid.NewGuid(),
          FirstName = "Dom",
          LastName = "A",
          Email = "dominicarchual@yahoo.com"
      });
  
      var contacts = unitOfWork.ContactRepository.Get(x =&gt; x.FirstName == "Dominic");
  
      Assert.AreEqual(1, contacts.Count());
  }
  </code></pre>
  
  <p>The error I get is:</p>
  
  <blockquote>
    <p>Test method
    MvcContacts.Tests.Controllers.HomeControllerTest.TestUnitOfWork threw
    exception:  System.Data.ProviderIncompatibleException: An error
    occurred while getting provider information from the database. This
    can be caused by Entity Framework using an incorrect connection
    string. Check the inner exceptions for details and ensure that the
    connection string is correct. --->
    System.Data.ProviderIncompatibleException: The provider did not return
    a ProviderManifestToken string. --->
    System.Data.SqlClient.SqlException: A network-related or
    instance-specific error occurred while establishing a connection to
    SQL Server. The server was not found or was not accessible. Verify
    that the instance name is correct and that SQL Server is configured to
    allow remote connections. (provider: SQL Network Interfaces, error: 26
    - Error Locating Server/Instance Specified)</p>
  </blockquote>
  
  <p>I don't have any database set up; i.e. my context looks like this:</p>
  
  <pre><code>namespace MvcContacts.DAL
  {
      public class ContactsContext : DbContext
      {
          public DbSet&lt;Contact&gt; Contacts { get; set; }
      }
  }
  </code></pre>
  
  <p>I don't know exactly how to map this to my database; but, I was thinking that I wouldn't have to do that yet since I am just trying to test using mock data.  Am I wrong?</p>
  
  <p><strong>E1: This is my unit of work class.</strong></p>
  
  <pre><code>namespace MvcContacts.DAL
  {
      public class UnitOfWork : IDisposable
      {
          private ContactsContext context = new ContactsContext();
          private GenericRepository&lt;Contact&gt; contactRepository;
  
          public GenericRepository&lt;Contact&gt; ContactRepository
          {
              get
              {
                  if (this.contactRepository == null)
                  {
                      this.contactRepository = new GenericRepository&lt;Contact&gt;(context);
                  }
                  return contactRepository;
              }
          }
  
          public void Save()
          {
              context.SaveChanges();
          }
  
          private bool disposed = false;
  
          protected virtual void Dispose(bool disposing)
          {
              if (!this.disposed)
              {
                  if (disposing)
                  {
                      context.Dispose();
                  }
              }
              this.disposed = true;
          }
  
          public void Dispose()
          {
              Dispose(true);
              GC.SuppressFinalize(this);
          }
      }
  }
  </code></pre>