public void Should_state_that_body_is_compeletely_preloaded(bool expectedResult, byte[] postData)
        {
            // Arrange
            var worker = new FakeWorkerRequest();

            worker.SetPostData(postData);

            // Act
            var isEntireEntityBodyIsPreloaded = worker.IsEntireEntityBodyIsPreloaded();

            // Assert
            isEntireEntityBodyIsPreloaded.Should().Be(expectedResult);
        }
        public void Should_return_post_string_as_array_of_butes(byte[] data)
        {
            // Arrange
            var worker = new FakeWorkerRequest();

            worker.SetPostData(data);

            // Act
            var actualData = worker.GetPreloadedEntityBody();

            // Assert
            actualData.Should().BeSameAs(data);
        }
        public void Should_swith_request_werb_to_post(string expectedVern, byte[] data)
        {
            // Arrange
            var worker = new FakeWorkerRequest();

            worker.SetPostData(data);

            // Act
            var actualVerb = worker.GetHttpVerbName();

            // Assert
            actualVerb.Should().Be(expectedVern);
        }