public async Task TimeOfExecutioncannotbelessorequalsthan0(int timeout) { var tmp = ControllerBuilder.New().ChangeTimeOfExecution(timeout); await Assert.IsType <BadRequestObjectResult>(await tmp.BuildToGetException().ConfigureAwait(false)).CheckBadRequest("Time Of Execution cannot be less or equals than 0").ConfigureAwait(false); }
public async Task AmountMemoryCannotbelessorequalsthan0(int amountMemory) { var tmp = ControllerBuilder.New().ChangeAmountMemory(amountMemory); await Assert.IsType <BadRequestObjectResult>(await tmp.BuildToGetException().ConfigureAwait(false)).CheckBadRequest("Amount of Memory cannot be less or equals than 0").ConfigureAwait(false); }
public async Task FirstIndexmustnotbenegativeReturnBadRequest(int firsIndex) { var tmp = ControllerBuilder.New().ChangeFirstIndex(firsIndex); await Assert.IsType <BadRequestObjectResult>(await tmp.BuildToGetException().ConfigureAwait(false)).CheckBadRequest("First Index cannot be less than 0").ConfigureAwait(false); }