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(); }
public void AmazonCredentials_InitErrorTest() { string regionEndpoint = "Westerosis"; AmazonCredentials target = new AmazonCredentials(regionEndpoint); }
public void AmazonCredentials_InitTest() { string regionEndpoint = "eu-west-1"; AmazonCredentials target = new AmazonCredentials(regionEndpoint); }