{"__v":12,"_id":"54cfba45bba1a023008741bd","category":{"__v":2,"_id":"54cfb737bba1a023008741a2","pages":["54cfb737bba1a023008741a4","54cfba45bba1a023008741bd"],"project":"54cfb736bba1a0230087419e","version":"54cfb736bba1a023008741a1","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-02T17:43:19.055Z","from_sync":false,"order":0,"slug":"introduction","title":"Introduction"},"project":"54cfb736bba1a0230087419e","user":"54c4ca54686bce0d00efe1b9","version":{"__v":5,"_id":"54cfb736bba1a023008741a1","project":"54cfb736bba1a0230087419e","createdAt":"2015-02-02T17:43:18.560Z","releaseDate":"2015-02-02T17:43:18.560Z","categories":["54cfb737bba1a023008741a2","54cfc6f75ff7e617002bbdae","54cfcbaebba1a023008741fc","54cfd0295ff7e617002bbdd9","54cfd05b3995cf0d0006f741"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-02T17:56:21.315Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"You can install this library using NuGet into your Test Library; it will automatically reference System.Web and System.Web.Mvc (via NuGet packages, sorry it also installs a heap of other dependencies - it would be cool if Microsoft provided a package with just the MVC dll!) for you.\n\nIf you are using ASP.NET MVC 5 (.NET 4.5+) then:\n\n    Install-Package TestStack.FluentMVCTesting\n\nIf you are using ASP.NET MVC 4 (.NET 4.0+) then:\n\n\tInstall-Package TestStack.FluentMVCTesting.Mvc4\n\nIf you are using ASP.NET MVC 3 (.NET 4.0+) then:\n\n    Install-Package TestStack.FluentMVCTesting.Mvc3\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Known issues\"\n}\n[/block]\nIf you get the following exception:\n\n    System.Security.VerificationException : Method FluentMVCTesting.ControllerExtensions.WithCallTo: type argument 'MyApp.Controllers.MyController' violates the constraint of type parameter 'T'.\n\nIt means you are referencing a version of System.Web.Mvc that isn't compatible with the one that was used to build the dll that was generated for the NuGet package. Ensure that you are using the correct package for your version of MVC and that you are using the [AspNetMvc packages on nuget.org](https://nuget.org/packages/aspnetmvc) rather than the dll from the GAC.","excerpt":"","slug":"installation","type":"basic","title":"Installation"}
You can install this library using NuGet into your Test Library; it will automatically reference System.Web and System.Web.Mvc (via NuGet packages, sorry it also installs a heap of other dependencies - it would be cool if Microsoft provided a package with just the MVC dll!) for you. If you are using ASP.NET MVC 5 (.NET 4.5+) then: Install-Package TestStack.FluentMVCTesting If you are using ASP.NET MVC 4 (.NET 4.0+) then: Install-Package TestStack.FluentMVCTesting.Mvc4 If you are using ASP.NET MVC 3 (.NET 4.0+) then: Install-Package TestStack.FluentMVCTesting.Mvc3 [block:api-header] { "type": "basic", "title": "Known issues" } [/block] If you get the following exception: System.Security.VerificationException : Method FluentMVCTesting.ControllerExtensions.WithCallTo: type argument 'MyApp.Controllers.MyController' violates the constraint of type parameter 'T'. It means you are referencing a version of System.Web.Mvc that isn't compatible with the one that was used to build the dll that was generated for the NuGet package. Ensure that you are using the correct package for your version of MVC and that you are using the [AspNetMvc packages on nuget.org](https://nuget.org/packages/aspnetmvc) rather than the dll from the GAC.