The Builder Pattern in .NET: Listing 5
Listing 5: BrewMaster.cs
public class BrewMaster
public void SetBeerBuilder(IBeerBuilder beerBuilder)
_beerBuilder = beerBuilder;
public Beer GetBeer()
public void BrewBeer()
Eric Vogel is a Sr. Software Developer at Kunz, Leigh, & Associates in Okemos, MI. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at email@example.com.