Exemplo n.º 1
0
        public void Create(CustomerDTO customer)
        {
            string fullName = _nameBuilder.From(customer.FirstName, customer.LastName);

            Customer newCustomer = new Customer(fullName);

            _customerRepository.Save(newCustomer);
        }
Exemplo n.º 2
0
        public void CreateTrackingArg(CustomerDTO customer)
        {
            string fullName = _nameBuilder.From(customer.FirstName, customer.LastName);

            Customer newCustomer = new Customer(fullName);

            _repositry.Save(newCustomer);
        }
Exemplo n.º 3
0
        public void Create(CustomerDTO customerDTO)
        {
            string fullName = nameBuilder.From(customerDTO.FirstName, customerDTO.LastName);

            Customer newCustomer = new Customer(fullName);

            newCustomer.Id = Guid.NewGuid();

            customerRepository.Save(newCustomer);
        }
        public void Create(CustomerDTO customerDto)
        {
            string fullName = _nameBuilder.From(customerDto.FirstName, customerDto.LastName);

            _repository.Save(new Customer(fullName));
        }