示例#1
0
        public void Create(CustomerToCreateDto customerToCreateDto)
        {
            string   fullName = _customerFullName.From(customerToCreateDto.FirstName, customerToCreateDto.LastName);
            Customer customer = new Customer(fullName);

            _customerRepository.Save(customer);
        }
示例#2
0
        public void Create(CustomerToCreateDto customerToCreateDto)
        {
            var fullName = customerFullName.From(
                customerToCreateDto.FirstName,
                customerToCreateDto.LastName);

            var customer = new Customer(fullName);

            customerRepository.Save(customer);
        }
示例#3
0
        public void Create(CustomerToCreateDto customerToCreateDto)
        {
            var fullName = _customerFullName.From(
                customerToCreateDto.FirstName,
                //"asdf",   //uncomment this for test failed
                customerToCreateDto.LastName);

            var customer = new Customer(fullName);

            _customerRepository.Save(customer);
        }
        public void Create(CustomerToCreateDto customerToCreateDto)
        {
            var fullName = _customerFullName.From(
                customerToCreateDto.FirstName,
                //"Foo",// If this was passed in as the first parameter, it would cause the test to fail.
                customerToCreateDto.LastName);

            var customer = new Customer(fullName);

            _customerRepository.Save(customer);
        }
示例#5
0
 internal void CustomerFullNameBuilderTest(CustomerToCreateDto dto)
 {
     customerFullNameBuilder.From(dto.FirstName, dto.LastName);
 }