AWSSDK.Tests.Framework.TestRunner.TestRunner C# (CSharp) Method

TestRunner() public method

public TestRunner ( ) : Amazon
return Amazon
        public TestRunner()
        {
            if (!Loaded)
            {
                var resource = Resources.Load(@"settings") as TextAsset;
                var settings = JsonMapper.ToObject(resource.text);

                TestAccountId = settings["AccountId"] == null ? null : settings["AccountId"].ToString();
                Credentials = new BasicAWSCredentials(settings["AccessKeyId"].ToString(), settings["SecretAccessKey"].ToString());
                RegionEndpoint = RegionEndpoint.GetBySystemName(settings["RegionEndpoint"].ToString());
                Loaded = true;
                LogWriter = new StringWriter();
            }
        }