コード例 #1
0
        public void GetAmazonQuotaTest()
        {
            //setup
            ICommonLogger logger = new ShoutExceptionLogger();
            AmazonCredentials amazonCredentials = new AmazonCredentials(AmazonTestParameters.AWSRegion
              , AmazonTestParameters.AWSAccessKey, AmazonTestParameters.AWSSecretKey);
            List<LimitedPeriod> limitedPeriods = new List<LimitedPeriod>()
            {
                new LimitedPeriod(TimeSpan.FromMinutes(30), 5)
            };
            IJournalStorage journalStorage = new MemoryJournalStorage();
            AmazonLimitManager target = new AmazonLimitManager(limitedPeriods, journalStorage, amazonCredentials, logger);
            

            //test
            target.GetAmazonQuota();
        }
コード例 #2
0
 public void AmazonCredentials_InitErrorTest()
 {
     string regionEndpoint = "Westerosis";
     AmazonCredentials target = new AmazonCredentials(regionEndpoint);
 }
コード例 #3
0
 public void AmazonCredentials_InitTest()
 {
     string regionEndpoint = "eu-west-1";
     AmazonCredentials target = new AmazonCredentials(regionEndpoint);   
 }