public void It_Should_Throw_When_Creating_Option_When_Batch_Id_Does_Not_Exist() { var request = CreateBatchOptionRequest("invalid"); try { Sut.Post(request); Assert.Fail("Should throw"); } catch (WebServiceException webEx) { webEx.StatusCode.Should().Be((int)HttpStatusCode.NotFound); webEx.Message.Should().Be(ErrMsg.BatchNotFound(request.BatchId)); } }