I have used the ADO Entity Data Model to create my domain models Data Base First and I have a custom Identity (I don't know if it matters anyway) and evething works fine until here. The problem is when I start to create my UnitTest Class. First I click with the right mouse button and choose create unit tests, so I did something like that

[TestMethod()]

public void PermissionsTest()

{

GroupController controller = new GroupController();

var result = controller.Permissions("1") as ViewResult;

Assert.AreEqual("Details", result.ViewName);

}

I put my MVC project reference into my Test project too and I updated my app.config adding the connectionStrings that I am using at my MVC project.

Models.Domain.Models.ssdl(2,2) : error 0152: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.