public void ShouldLoadAssemblies() { // Arrange List<Assembly> assemblies = GetAssembliesToLoad(); // Act AppHostHttpListener appHostServices = new AppHostHttpListener("test", assemblies.ToArray()); // Assert Assert.AreEqual(2, appHostServices.Assemblies.Count()); }
public AppHostHttpListener GetAppHostHttpListener() { List<Assembly> assemblies = GetAssembliesToLoad(); AppHostHttpListener appHostServices = new AppHostHttpListener("TestServices", assemblies.ToArray()); appHostServices.Init(); appHostServices.Start(ListeningOn); return appHostServices; }