I\'m trying to run integration tests for my ASP.NET MVC application using Entity Framework 6.
The error I get is
System.Data.Entity.Core.Enti
You're calling Commit and then Rollback, but the comments point that mistake out.
The error isn't very intuitive, I mean, an ArgumentNullException should never work its way out of an SDK from down the stack.
But I've had this when I've accidentally reused the same transaction instance, or called Commit twice, or tried to rollback twice in layered error recovery logic.