Beispiel #1
0
        public void ToCustomerDto_Should_Success(Domain.Customer customer, CustomerAssembler sut)
        {
            Action action = () =>
            {
                var result = sut.ToCustomerDto(customer);
                result.Id.Should().Be(customer.Id);
                result.CityCode.Should().Be(customer.CityCode);
                result.FullName.Should().Be(customer.FullName);
                result.BirthDate.Should().Be(customer.BirthDate);
            };

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