public void Create(CustomerToCreateDto customerToCreateDto) { string fullName = _customerFullName.From(customerToCreateDto.FirstName, customerToCreateDto.LastName); Customer customer = new Customer(fullName); _customerRepository.Save(customer); }
public void Create(CustomerToCreateDto customerToCreateDto) { var fullName = customerFullName.From( customerToCreateDto.FirstName, customerToCreateDto.LastName); var customer = new Customer(fullName); customerRepository.Save(customer); }
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); }
internal void CustomerFullNameBuilderTest(CustomerToCreateDto dto) { customerFullNameBuilder.From(dto.FirstName, dto.LastName); }