public void Calculate_Should_Throw_Null_If_Parameter_Is_Null() { //Act & Assert Assert.ThrowsAsync <ArgumentNullException>(async() => await sut.Calculate(null)); }
public async Task <int> Handle(SumRequest request, CancellationToken cancellationToken) { return(await operation.Calculate(new OperationDto(request.First, request.Second))); }