Esempio n. 1
0
        public async void CourierService_InsertCourierAsync_should_throw_exception_when_specified_courier_is_null()
        {
            // Act
            Func <Task> action = async() => { await _service.InsertCourierAsync(null); };

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