Chapter 2. Acme Car Rental

This chapter covers

  • Creating requirements for a fictional project
  • Writing code from scratch to satisfy the requirements
  • Taking a pass to refactor messy code, without any AOP
  • Taking a different pass to refactor, this time using AOP

In this chapter, you’ll be coding the business logic for a new application for the (fictional) Acme Car Rental Company. You’ll be given the requirements; you can then follow along as I gradually add code to conform to those requirements.

I’ll start from scratch and not use any AOP. The business requirements are the most important, so we’ll do those first. Once the business logic is working, we’ll add code to cover the nonfunctional requirements. Once we’ve fulfilled the requirements, ...

Get AOP in .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.