public void ApplicationJsonSecondAcceptHeader() { var responseInfo = AwsSdkChangeLogController.DetermineResponseType("text/html, application/json"); Assert.Equal("application/json", responseInfo.ResponseContentType); Assert.Equal(ResponseWriterType.Json, responseInfo.WriterType); }
public void TextPlainAcceptHeader() { var responseInfo = AwsSdkChangeLogController.DetermineResponseType("text/plain"); Assert.Equal("text/plain", responseInfo.ResponseContentType); Assert.Equal(ResponseWriterType.Text, responseInfo.WriterType); }