public void GetHeader_NoHeaders() { var request = new APIGatewayProxyRequest { Headers = null }; request.GetHeader("kaka").Should().BeNull(); }
public void GetHeader_KeyNotFound() { var headers = new Dictionary <string, string> { { "Hi there", "com.xerris.header" } }; var request = new APIGatewayProxyRequest { Headers = headers }; request.GetHeader("kaka").Should().BeNull(); }
public void GetHeader() { var headers = new Dictionary <string, string> { { "com.xerris.header", "Hi there" } }; var request = new APIGatewayProxyRequest { Headers = headers }; request.GetHeader("com.xerris.header").Should().Be("Hi there"); }