Beispiel #1
0
        public void ToCustomer_Should_Success(CustomerDto customerDto, CustomerAssembler sut)
        {
            Action action = () =>
            {
                var result = sut.ToCustomer(customerDto);
                result.CityCode.Should().Be(customerDto.CityCode);
                result.FullName.Should().Be(customerDto.FullName);
                result.BirthDate.Should().Be(customerDto.BirthDate);
            };

            action.Should().NotThrow <Exception>();
        }