Esempio n. 1
0
        public async Task DescribeInstancesAsync_when_any_exist_should_describe_instances()
        {
            // Arrange
            var client = new EnvironmentVariables().CloudComputeClient();
            IInstanceService classUnderTest = new InstanceService(client);

            // Act
            var response = await classUnderTest.DescribeInstancesAsync();

            // Assert
            Assert.IsTrue(response.HttpStatusCode == System.Net.HttpStatusCode.OK);

            // Dump response
            new ResponseToJsonFile().Go("Instance_CreatedFromConsole", response);
        }