Exemple #1
0
 public void ThenWhenRequestingInvalidChangeThrowsException(PaymentStatus invalidStatus)
 {
     Assert.ThrowsAsync <ArgumentOutOfRangeException>(async() => await
                                                      _controller.PatchApprenticeship(TestProviderId, TestApprenticeshipId,
                                                                                      new ApprenticeshipSubmission {
         PaymentStatus = invalidStatus
     }))
     .Message.Should().Contain("Not a valid value for change of status");
 }