public static FulfillmentResponse AssertOutgoingContextHasParameter( this FulfillmentResponse fulfillmentResponse, string contextName, string parameterName) { var context = fulfillmentResponse.GetContext(contextName); Assert.IsTrue(context.Parameters.ContainsKey(parameterName)); return(fulfillmentResponse); }
public static FulfillmentResponse AssertOutgoingContextHasLifespanOf( this FulfillmentResponse fulfillmentResponse, string contextName, int lifespan) { var context = fulfillmentResponse.GetContext(contextName); Assert.AreEqual(lifespan, context.Lifespan); return(fulfillmentResponse); }