public void TestNonArnOutpostRequestHasIdFalse() { var request = new GetAccessPointRequest { Name = "test", }; string outpostId = null; Assert.IsFalse(S3ArnUtils.DoesRequestHaveOutpostId(request, out outpostId)); Assert.AreEqual(null, outpostId); }
public void TestNonArnOutpostRequestHasIdTrue() { var request = new CreateBucketRequest { Bucket = "test", OutpostId = "op-1234567890" }; string outpostId = null; Assert.IsTrue(S3ArnUtils.DoesRequestHaveOutpostId(request, out outpostId)); Assert.AreEqual("op-1234567890", outpostId); }