using System.Collections.Generic; using EnterpriseSample.Core.Domain; namespace EnterpriseSample.Tests.TestFactories { class TestHistoricalOrderSummariesFactory { public List<HistoricalOrderSummary> CreateHistoricalOrderSummaries() { List<HistoricalOrderSummary> summaries = new List<HistoricalOrderSummary>(); summaries.Add(Summary1); summaries.Add(Summary2); summaries.Add(Summary3); summaries.Add(Summary4); return summaries; } private HistoricalOrderSummary Summary1 { get { return new HistoricalOrderSummary("Milk", 3); } } private HistoricalOrderSummary Summary2 { get { return new HistoricalOrderSummary("Pizza", 74); } } private HistoricalOrderSummary Summary3 { get { return new HistoricalOrderSummary("Homebrew", 128); } } private HistoricalOrderSummary Summary4 { get { return new HistoricalOrderSummary("Lettuce", 1); } } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)