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