Beispiel #1
0
        public static FulfillmentResponse AssertOutgoingContextHasParameter(
            this FulfillmentResponse fulfillmentResponse, string contextName, string parameterName)
        {
            var context = fulfillmentResponse.GetContext(contextName);

            Assert.IsTrue(context.Parameters.ContainsKey(parameterName));
            return(fulfillmentResponse);
        }
Beispiel #2
0
        public static FulfillmentResponse AssertOutgoingContextHasLifespanOf(
            this FulfillmentResponse fulfillmentResponse, string contextName, int lifespan)
        {
            var context = fulfillmentResponse.GetContext(contextName);

            Assert.AreEqual(lifespan, context.Lifespan);
            return(fulfillmentResponse);
        }