public ServerHealthApp(string aHttpDirectory) { iHttpDirectory = aHttpDirectory; iPathDispatcher = new AppPathDispatcher(); iPathDispatcher.MapPath(new string[] { }, ServeAppHtml); iPathDispatcher.MapPrefixToDirectory(new string[] { }, aHttpDirectory); }
public LoginApp(UserList aUserList, string aHttpDirectory) { iUserList = aUserList; iHttpDirectory = aHttpDirectory; iUserList.Updated += OnUserListUpdated; iUrlDispatcher = new AppPathDispatcher(); iUrlDispatcher.MapPath( new string[] { }, ServeAppHtml); iUrlDispatcher.MapPrefixToDirectory(new string[] { }, aHttpDirectory); }
public void SetUp() { iMockHandler = new Mock<ITestRequestHandler>(); iDispatcher = new AppPathDispatcher(); iDispatcher.MapPrefix(new[] { "foo/", "bar/", "baz" }, iMockHandler.Object.HandleFooBarBaz); iDispatcher.MapPrefix(new[] { "foo/" }, iMockHandler.Object.HandleFoo); iDispatcher.MapPrefixToDirectory(new[] { "directory/" }, Path.Combine("x:/", "test", "directory")); iDispatcher.MapPrefix(new string[] { }, iMockHandler.Object.HandleRoot); //iMockRequest = new Mock<IAppWebRequest>(); iMockResponder = new Mock<IWebRequestResponder>(); //iMockRequest.SetupAllProperties(); //iMockRequest.Setup(x => x.Responder).Returns(iMockResponder.Object); }
public RootApp() { iUrlDispatcher = new AppPathDispatcher(); iUrlDispatcher.MapPrefixToDirectory(new string[] { }, "root"); }
public TestApp() { iPathDispatcher = new AppPathDispatcher(); iPathDispatcher.MapPrefixToDirectory(new string[] { }, "test"); }