© Users Browser JQuery Ajax Plan My Night Application ASP.NET MVC 2.0 View Controller Model MEF Addin Model Business Logic Windows Server App Fabric (formerly codename Velocity) Model SQL Server 2008 ASP.NET 4.0 ASP.NET MVC 2.0 Windows Server App Fabric (previously codenamed Velocity) SQL SERVER 2008 Bing IIS 7.5 Windows LiveID MEF Add-In Modules Plan My Night 1.0 var authority var pathAndQuery /// ///A test for GetFriendlyTime /// // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example, // http:// /Default.aspx) This is necessary for the unit test to be executed on the web server, // whether you are testing a page, web service, or a WCF service [TestMethod()] [HostType("ASP.NET")] [AspNetDevelopmentServerHost("C:\\Users\\Patrice\\Documents\\Chapter 10\\DebuggerStart\\code\\PlanMyNight.Web", "/")] [UrlToTest("http://localhost:48580/")] public void GetFriendlyTimeTest() { int totalMinutes = 0; // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; actual = TimeHelper.GetFriendlyTime(totalMinutes); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); } [TestMethod] public void ZeroReturnsSlash() { Assert.AreEqual("-", TimeHelper.GetFriendlyTime(0)); } [TestMethod] public void LessThan60MinutesReturnsValueInMinutes() { Assert.AreEqual("10m", TimeHelper.GetFriendlyTime(10)); } [TestMethod()] public void MoreThan60MinutesReturnsValueInHoursAndMinutes() { Assert.AreEqual("2h 3m", TimeHelper.GetFriendlyTime(123)); } public class TimeHelperTest Then you ... /> SELECT [UserProfile].[UserName]