public async Task SHOULD_extract_headers_and_start_request_operation() { //Arrange MockResolverContext.With_ContextData("HttpContext", new HttpContextMockBuilder() .WithHeaders(new HeaderDictionary(new Dictionary <string, StringValues> { { "HeaderOne", "HeaderOneValue" }, { "HeaderTwo", "HeaderTwoValue" }, })).Object); //Act await Sut.HandleAsync <TestCommand>(MockResolverContext.Object, CancellationToken.None); //Assert MockAnalyticsService.VerifyStartRequestOperation("TestCommand"); MockAnalyticsService.VerifyStartRequestOperationProperty(x => x["HeaderOne"] == "HeaderOneValue"); MockAnalyticsService.VerifyStartRequestOperationProperty(x => x["HeaderTwo"] == "HeaderTwoValue"); }