Ejemplo n.º 1
0
        public void Get()
        {
            // Arrange
            var cloudFoundryInfo = new CloudFoundryEnvironment(
                "8080",
                "512M",
                "1",
                "127.0.0.1"
                );

            // Act
            var response = new EnvironmentController(cloudFoundryInfo).Get();

            // Assert
            response.Port.Should().Be("8080");
            response.MemoryLimit.Should().Be("512M");
            response.CfInstanceIndex.Should().Be("1");
            response.CfInstanceAddr.Should().Be("127.0.0.1");
        }
Ejemplo n.º 2
0
 public EnvironmentController(CloudFoundryEnvironment cloudFoundryEnvironment)
 {
     _cloudFoundryEnvironment = cloudFoundryEnvironment;
 }