public void WhenBootstrapperRequest_IsUiWithoutLog4Net_ReturnsSuccess()
 {
     var sandbox = Use<FileSandbox>();
     var bootstrapPath = sandbox.ProvideDirectory("interfaces/root");
     var request = TestRequest(bootstrapPath, ComponentType.AspNet);
     var sut = new DotNetLog4NetConnector();
     var result = sut.Bootstrap(request);
     result.ShouldBeSuccessful();
 }
 public void WhenBootstrapperRequest_IsUiWithoutLog4Net_FilesAreUnchanged()
 {
     var sandbox = Use<FileSandbox>();
     var bootstrapPath = sandbox.ProvideDirectory("interfaces/root");
     var lastModTime = GetLastModified(bootstrapPath);
     var request = TestRequest(bootstrapPath, ComponentType.AspNet);
     var sut = new DotNetLog4NetConnector();
     var result = sut.Bootstrap(request);
     result.ShouldBeSuccessful();
     var afterBootstrapModTime = GetLastModified(bootstrapPath);
     afterBootstrapModTime.Should().Be(lastModTime);
 }
        public void WhenWorkloadBootstrapped_Success()
        {
            var sandbox = Use<FileSandbox>();
            var bootstrapPath = sandbox.ProvideDirectory("interfaces");
            var lastModTime = GetLastModified(bootstrapPath);
            var request = TestRequest(bootstrapPath, ComponentType.AspNet);
            var sut = new DotNetLog4NetConnector();

            var result = sut.Bootstrap(request);
            result.ShouldBeSuccessful();
            var afterBootstrapModTime = GetLastModified(bootstrapPath);
            afterBootstrapModTime.Should().BeAfter(lastModTime);
            new FileInfo(Path.Combine(bootstrapPath, "root", "web.config")).LastWriteTime.Should().BeAfter(lastModTime);
            File.Exists(Path.Combine(bootstrapPath, "root", "bin", "log4net.apprenda.dll")).Should().BeTrue();
        }