예제 #1
0
        public void GetRegionNameTestForS3UsStandard()
        {
            // ARRANGE
            DashboardEventRaw s3 = JsonConvert.DeserializeObject <DashboardEventRaw>(File.ReadAllText("s3-us-standard.json"));

            // ACT
            string region = s3.GetRegion();

            // ASSERT
            Assert.Equal("us-standard", region);
        }
예제 #2
0
        public void GetRegionNameTestForManagementConsoleUsGovWest1()
        {
            // ARRANGE
            DashboardEventRaw mc = JsonConvert.DeserializeObject <DashboardEventRaw>(File.ReadAllText("management-console-us-gov-west-1.json"));

            // ACT
            string region = mc.GetRegion();

            // ASSERT
            Assert.Equal("us-gov-west-1", region);
        }
예제 #3
0
        public void GetRegionNameTestForGlueDataBrewUsEast1()
        {
            // ARRANGE
            DashboardEventRaw glue = JsonConvert.DeserializeObject <DashboardEventRaw>(File.ReadAllText("aws-glue-us-east-1.json"));

            // ACT
            string region = glue.GetRegion();

            // ASSERT
            Assert.Equal("us-east-1", region);
        }
예제 #4
0
        public void GetRegionNameTestForEC2UsEast1()
        {
            // ARRANGE
            DashboardEventRaw ec2 = JsonConvert.DeserializeObject <DashboardEventRaw>(File.ReadAllText("ec2-us-east-1.json"));

            // ACT
            string region = ec2.GetRegion();

            // ASSERT
            Assert.Equal("us-east-1", region);
        }