Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

List of Figures

List of Tables

List of Listings

Foreword

Preface

Acknowledgments

About this Book

About the Authors

About the Cover Illustration

Chapter 1. Getting started with the ASP.NET MVC Framework

1.1. Picking apart the default application

1.1.1. Creating the project

1.1.2. Your first routes

1.1.3. Running with the starter project

1.2. Your first ASP.NET MVC controller from scratch

1.3. Our first view

1.4. Ensuring the application is maintainable

1.5. Testing controller classes

1.6. Summary

Chapter 2. The model in depth

2.1. Understanding the basics of domain-driven design

2.2. Domain model for this book

2.2.1. Key entities and value objects

2.2.2. Aggregates

2.2.3. Persistence for the domain model

2.3. Presentation model

2.3.1. Presentation model responsibilities

2.3.2. Projecting from the domain model

2.4. Working with the model

2.4.1. Crafting the route

2.4.2. Crafting the controller action

2.4.3. Test-driving the feature

2.4.4. Finishing the view

2.5. Summary

Chapter 3. The controller in depth

3.1. The controller action

3.2. Simple controllers do not need a view

3.3. Testing controllers

3.3.1. Testing the RedirectController

3.3.2. Making dependencies explicit

3.3.3. Using test doubles, such as stubs and mocks

3.3.4. Elements of a good controller unit test