public void GetAcceptableContentTypesShouldCallDelegate() { var contentTypeSelector = new AcceptableContentTypeSelectorSimulator(); var host = new DataServiceHostSimulator(); var requestMessage = new AstoriaRequestMessage(host, contentTypeSelector); requestMessage.GetAcceptableContentTypes().Should().Be(AcceptableContentTypeSelectorSimulator.GetFormatReturnValue); }
public void GetAcceptableContentTypesShouldCallDelegate() { var contentTypeSelector = new AcceptableContentTypeSelectorSimulator(); var host = new DataServiceHostSimulator(); var requestMessage = new AstoriaRequestMessage(host, contentTypeSelector); requestMessage.GetAcceptableContentTypes().Should().Be(AcceptableContentTypeSelectorSimulator.GetFormatReturnValue); }