AWSSDK_DotNet.IntegrationTests.Tests.IotData.Cleanup C# (CSharp) Method

Cleanup() private method

private Cleanup ( ) : void
return void
        public static void Cleanup()
        {
            if (!string.IsNullOrEmpty(CREATED_THING_NAME))
            {
                using (var iotClient = new AmazonIoTClient())
                {
                    iotClient.DeleteThing(CREATED_THING_NAME);
                }
            }

            if (Client != null)
            {
                Client.Dispose();
            }
        }