public void the_operation_is_not_selected() { given_filter(); given_operations(); given_request_header_content_type(MediaType.ApplicationOctetStream); given_registration_codec <ApplicationOctetStreamCodec>(); given_request_entity_body(new byte[] { 0 }); when_filtering_operations(); FilteredOperations.FirstOrDefault(x => x.Name == "Post").ShouldBeNull(); }
IOperation then_operation_should_be_selected(string methodName) { return(FilteredOperations.FirstOrDefault(x => x.Name == methodName).ShouldNotBeNull()); }