Exemplo n.º 1
0
        public async void CourierService_UpdateCourierAsync_should_throw_exception_when_specified_courier_is_null()
        {
            // Act
            Func <Task> action = async() => { await _service.UpdateCourierAsync(null); };

            // Assert
            await action.Should().ThrowAsync <CourierDomainException>().WithMessage("Courier is null");
        }