public void GivenARequestIsNUll_WhenValidating_ThenArgumentNullIsThrown()
        {
            AssignIsLowerThanStrategyToFeatureRequest request = null;

            request
            .WhenValidating()
            .ThenExceptionIsThrown <ArgumentValidationException>();
        }
        public static void ThenCommandIsFilled(this Func <AssignIsLowerThanStrategyToFeatureCommand> createFunc, AssignIsLowerThanStrategyToFeatureRequest request)
        {
            var command = createFunc();

            command.Name.Should().Be(request.Name);
            command.Path.Should().Be(request.Path);
            command.AssignedBy.Should().Be(request.AssignedBy);
            command.Value.Should().Be(request.Value.GetValueOrDefault());
        }
 public static Action WhenValidating(this AssignIsLowerThanStrategyToFeatureRequest request)
 {
     return(() => request.Validate());
 }
 public static Func <AssignIsLowerThanStrategyToFeatureCommand> WhenExtractingCommand(this AssignIsLowerThanStrategyToFeatureRequest request)
 {
     return(() => request.ToAssignIsLowerThanStrategyToFeatureCommand());
 }
 public static Func <Task <IActionResult> > WhenProcessingCommand(
     this AssignIsLowerThanStrategyToFeatureController controller,
     AssignIsLowerThanStrategyToFeatureRequest request)
 {
     return(() => controller.Post(request));
 }