コード例 #1
0
        public void ThenTheRetrievedOperationIsPercentComplete(int expectedPercentComplete)
        {
            Client.OperationsStatus.Models.Operation result =
                this.ScenarioContext.Get <Client.OperationsStatus.Models.Operation>(LastResponseContextKey);

            Assert.AreEqual(expectedPercentComplete, result.PercentComplete);
        }
コード例 #2
0
        public void ThenTheRetrievedOperationHasPercentCompleteSetToNull()
        {
            Client.OperationsStatus.Models.Operation result =
                this.ScenarioContext.Get <Client.OperationsStatus.Models.Operation>(LastResponseContextKey);

            Assert.IsNull(result.PercentComplete);
        }
コード例 #3
0
        public void ThenTheRetrievedOperationHasTheResourceLocation(string expectedResourceLocation)
        {
            Client.OperationsStatus.Models.Operation result =
                this.ScenarioContext.Get <Client.OperationsStatus.Models.Operation>(LastResponseContextKey);

            Assert.AreEqual(expectedResourceLocation, result.ResourceLocation);
        }