Thông tin tài liệu
© 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 7\\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 ... pageNumber, totalOutput).ToArray(); foreach (var item in items) { item.Activities.AddRange(this.Retrieve(item.Id).Activities); } int total = totalOutput.Value == DBNull.Value ? : (int)totalOutput.Value;... readonly IReferenceRepository referenceRepository; private readonly IActivitiesRepository activitiesRepository; public AccountController() : this( new ServiceFactory().GetMembershipService(),... /> SELECT [UserProfile].[UserName]
Ngày đăng: 08/03/2014, 22:20
Xem thêm: Moving to Microsoft® Visual Studio® 2010 doc, Moving to Microsoft® Visual Studio® 2010 doc