using System.Linq; using System.Collections.Generic; using System.Collections.Specialized; using Website; namespace UnitTests.Controllers { public class ControllerTester { protected static class New { public static NameValueCollection FormData() { return new NameValueCollection(); } public static NameValueCollection FormData(NameValueCollection values) { return new NameValueCollection(values); } public static IDictionary TempData() { return new Dictionary(); } public static IDictionary TempData(IDictionary values) { return values; } /// /// Generate a new dummy content block /// /// A new dummy content block public static IContent Content() { return Content(1, "Content"); } /// /// Generate a new dummy content block /// /// A new dummy content block public static IContent Content(int id, string text) { return new Content(id, text); } } } }