public void Get() { var cloudFoundryInfo = new CloudFoundryInfo( "8080", "512M", "1", "127.0.0.1" ); var response = new EnvController(cloudFoundryInfo).Get(); Assert.Equal("8080", response.Port); Assert.Equal("512M", response.MemoryLimit); Assert.Equal("1", response.CfInstanceIndex); Assert.Equal("127.0.0.1", response.CfInstanceAddr); }
public EnvController(CloudFoundryInfo cloudFoundryEnv) { _cloudFoundryEnv = cloudFoundryEnv; }