コード例 #1
0
        public async void DeliveryService_DeleteDeliveryByIdAsync_should_throw_exception_when_specified_delivery_id_is_empty()
        {
            // Act
            Func <Task> action = async() => { await _service.DeleteDeliveryByIdAsync(Guid.Empty); };

            // Assert
            await action.Should().ThrowAsync <CourierDomainException>().WithMessage("Delivery Id is not specified");
        }