public async void CourierService_GetCourierByIdAsync_throws_exception_when_id_is_empty() { // Arrange var fakeGuid = Guid.Empty; // Act Func <Task> action = async() => { await _service.GetCourierByIdAsync(fakeGuid); }; // Assert await action.Should().ThrowAsync <CourierDomainException>().WithMessage("Courier Id is not specified"); }