Exemplo n.º 1
0
 public ServerHealthApp(string aHttpDirectory)
 {
     iHttpDirectory = aHttpDirectory;
     iPathDispatcher = new AppPathDispatcher();
     iPathDispatcher.MapPath(new string[] { }, ServeAppHtml);
     iPathDispatcher.MapPrefixToDirectory(new string[] { }, aHttpDirectory);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public RootApp()
 {
     iUrlDispatcher = new AppPathDispatcher();
     iUrlDispatcher.MapPrefixToDirectory(new string[] { }, "root");
 }
Exemplo n.º 5
0
 public TestApp()
 {
     iPathDispatcher = new AppPathDispatcher();
     iPathDispatcher.MapPrefixToDirectory(new string[] { }, "test");
 }