small medium large xlarge

Errata for Test-Drive ASP.NET MVC

 

The latest version of the book is P1.1, released about 6 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:

If you've found a new error, please submit it.

  • Typo
  • Tech. error
  • Suggestion
  • Maybe next edition
  • Not a problem
  • Reported in: P1.1 (01-Oct-11)
#47672
PDF page: CUOBn
Paper page: fzBZf

That's way the bseetst answer so far!--GZbdnRzgk

  • Reported in: P1.0 (16-Oct-10)
#45374
Paper page: 8
It should probably be made more explicit that if using the Express Editions of VS, ReSharper cannot be installed. This is because the Express Editions...more...
  • Reported in: P1.0 (14-Oct-10)
#45367
Paper page: 24
When explaining the new NUnit assertion format, the author makes a subtle, yet important semantic error. The new Assert.That style of assertion place...more...
  • Reported in: P1.0 (22-Dec-10)
#46077
Paper page: 24

In the Assert.That(...

SayHello() is static in Welcomer, and so doesn't need a new instance.--Mickey Puri

  • Reported in: P1.1 (23-Dec-10)
#46101
Paper page: 64

We assign a model to a list of Topics...

Should be

We assign a list of Topics to a model--Mickey Puri

  • Reported in: P1.1 (30-Dec-10)
#46153
Paper page: 96
On page 96, it says to write a test covering Create() to restrict to logged in users only. However by having Authorise on the class (as we already do)...more...
  • Reported in: P1.1 (18-Oct-11)
#47784
PDF page: 96
In TodoController: [HttpPost] public ActionResult Create(Todo todo) { try { CreateTodo(newTodo); return RedirectToAction("Index" ); } catch...more...
  • Reported in: P1.1 (03-Feb-11)
#46348
PDF page: 97
The figure on that page suggests that we have to implement the Equals() function for the Topic class. But there's another implementation of Equals() t...more...
  • Reported in: P1.0 (30-Dec-10)
#46156
Paper page: 97
Page 97, Sec 5.3, Have brought in the MVC Contrib dll and tried out the Test, but it fails to assert. Think there is something missing in this section...more...
  • Reported in: P1.1 (04-Feb-11)
#46356
PDF page: 106
"5.2 Logging In We will apply some of this theory back into our code. Every web application has a login page, unless you have a central authorizatio...more...
  • Reported in: P1.1 (06-Dec-11)
#48224
PDF page: 107
For PDF Version: 2010-06-28 Actual Sentence: We gave it the type ICustomerAttributeProvider... Should be: We gave it the type ICustomAttribute...more...
  • Reported in: P1.0 (02-Jan-11)
#46171
Paper page: 109

I found the test on page 109 worked fine for me. --Mickey Puri

  • Reported in: P1.0 (02-Jan-11)
#46170
Paper page: 113
It says that changing Mime type from application/octet-stream to image/jpg would render it as an image. In fact it appears to make no difference and i...more...
  • Reported in: P1.1 (06-Jan-11)
#46187
Paper page: 133
in Should_Display_Errors_When_Todo_Is_Not_Valid() Need to create a todoController to access the Create method. so needs to be new todoController()....more...
  • Reported in: P1.1 (06-Jan-11)
#46188
Paper page: 136

To keep functionality same, on delete column need .Attributes(onclick => "return confirm('Are you sure you want to delete this?');")--Mickey Puri

  • Reported in: P1.0 (28-Mar-11)
#46693
Paper page: 144

Last paragraph: "On line 22 we select the element..."
Should be line 15.--John Greep

  • Reported in: P1.1 (09-Jan-11)
#46209
Paper page: 151

The code for CreateElements is the old code copied in, and not the required code for the partial.--Mickey Puri

  • Reported in: P1.1 (10-Jan-11)
#46211
Paper page: 167

Code on page doesn't match that in solution. e.g class needs to be sealed, the Id maps to Id not title, etc.--Mickey Puri

  • Reported in: P1.0 (12-Jan-11)
#46220
Paper page: 172

Sec 8.5, line 8, parameter should be originalTodo.Id, as that defines the key--Mickey Puri

  • Reported in: P1.1 (12-Jan-11)
#46219
Paper page: 173

..test requires a new method, GetAll()... - should be Get()--Mickey Puri

  • Reported in: P1.1 (04-Jun-12)
#49402
PDF page: 175
instead: <% Html.RenderPartial("CreateElements" ); %> should be: <% Html.RenderPartial("CreateElements", new GetOrganized.Models.Todo()); %> ...more...
  • Reported in: P1.1 (13-Jan-11)
#46226
Paper page: 179

... then OpenSession() is called... it should read OpenCurrent() is called.--Mickey Puri

  • Reported in: P1.1 (14-Jan-11)
#46233
Paper page: 185

... every time it is created, whereas ... : created should be "called"--Mickey Puri