Examples of CustomerDTO


Examples of com.itedge.solutionmanager.domain.dto.CustomerDto

    List<CustomerDto> customerDtoList = new ArrayList<CustomerDto>();
        Customer searchCustomer = new Customer();
        searchCustomer.setName(searchName);
        Iterator<Customer> it = customerService.findEntitiesByCriteria(searchCustomer, maxResults).iterator();
        while(it.hasNext()) {
          customerDtoList.add(new CustomerDto(it.next(), messageSource, currentLocale));
        }
    return customerDtoList;
   
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

  @Test
  public void placeOrder() {
    // TODO Auto-generated method stub
    OrderDTO result = new OrderDTO();
    EventDTO event = new EventDTO();
    CustomerDTO customer = new CustomerDTO();
    AddressDTO shipaddress = new AddressDTO();
    AddressDTO billaddress = new AddressDTO();
    int quantity=1;
   
    event.setid(new Long(1));
    customer.setid(new Long(10));
    shipaddress.setid(new Long(7));
    billaddress.setid(new Long(7));
    result = _theOrderManager.placeOrder(event, customer, shipaddress, billaddress, quantity);
    Assert.assertTrue("Place order:",result.getReturncode() == 0);
   
    quantity=2;
    event.setid(new Long(2));
    customer.setid(new Long(10));
    shipaddress.setid(new Long(7));
    billaddress.setid(new Long(7));
    result = _theOrderManager.placeOrder(event, customer, shipaddress, billaddress, quantity);
    Assert.assertTrue("No tickets left:",result.getReturncode() != 0);
  }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

    TypeCodeDTO tpCode = new TypeCodeDTO();
    tpCode.setName("Private");
    tpCode.setId(1);

    CustomerDTO newCustomer = new CustomerDTO();
    newCustomer.setBirthdate(new Date(1976,10,9));
    newCustomer.setEmail("info@appelgriebsch.com");
    newCustomer.setFirstName("Andreas");
    newCustomer.setGenderType(GenderType.Male);
    newCustomer.setLastName("Gerlach");
    newCustomer.setPassword("12345");       // TODO: encrypt password !!!
    newCustomer.setSalutation("Hr.");
    newCustomer.setType(tpCode);
    newCustomer.setUserName("appelgriebsch");

    BaseDTO result = _theCustomerManager.registerCustomer(newCustomer);

    Assert.assertTrue("Customer created", result.getReturncode() == 0);
  }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

  }

  @Test
  public void signOnCustomer() {

    CustomerDTO customer = _theCustomerManager.signOn("appelgriebsch", "12345");
    Assert.assertTrue("Customer signed on", customer.getReturncode() == 0);

    customer = _theCustomerManager.signOn("appelgriebsch", "54321");
    Assert.assertTrue("Password mismatch", customer.getReturncode() != 0);

    customer = _theCustomerManager.signOn("nonexistcustomer", "111111");
    Assert.assertTrue("Customer didn't exist", customer.getReturncode() != 0);
  }
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

    Assert.assertTrue("Password change not successfull", result.getReturncode() != 0);
  }

  @Test
  public void getCustomerAddresses() {
    CustomerDTO customer = _theCustomerManager.signOn("appelgriebsch", "1234");
    AddressListDTO result = _theCustomerManager.getCustomerAddresses(customer);
    Assert.assertTrue("Got Customer Adresses:",result.getReturncode() == 0);
   
    customer = _theCustomerManager.signOn("test", "1234");
    result = _theCustomerManager.getCustomerAddresses(customer);
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

    Assert.assertTrue("Could not get Customer Adresses:",result.getReturncode() != 0);
  }

  @Test
  public void maintainCustomerAddress() {
    CustomerDTO customer = _theCustomerManager.signOn("appelgriebsch", "1234");
    AddressDTO address = new AddressDTO();
    TypeCodeDTO tpCode = new TypeCodeDTO();
    tpCode.setName("Private");
    tpCode.setId(1);
    CountryDTO countryDTO = new CountryDTO();
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

    Assert.assertTrue("Maintain address:",result.getReturncode() == 0);
  }

  @Test
  public void removeCustomerAddress() {
    CustomerDTO customer = _theCustomerManager.signOn("appelgriebsch", "1234");
    AddressDTO address = new AddressDTO();
    TypeCodeDTO tpCode = new TypeCodeDTO();
    tpCode.setName("Private");
    tpCode.setId(1);
    CountryDTO countryDTO = new CountryDTO();
View Full Code Here

Examples of de.fhdw.ify208.ticketmaster.common.model.CustomerDTO

 
  @Test
  public void rateEvent() {
    EventDTO event = new EventDTO();
    BaseDTO result = new BaseDTO();
    CustomerDTO customer = new CustomerDTO();
    customer.setid(new Long(10));
    event.setid(new Long(1));
    result = _theEventManager.rateEvent(event,customer,5,"Test");
    Assert.assertTrue("Rate event:",result.getReturncode() == 0);
   
    event.setid(new Long(2));
View Full Code Here

Examples of is.bokun.dtos.CustomerDto

    }
  }
 
  @JsonIgnore
    public CustomerDto getCustomerInfo() {
        CustomerDto dto = new CustomerDto();
        for (BookingAnswerDto a : answers) {
            if ( "first-name".equalsIgnoreCase(a.getType()) ) {
                dto.setFirstName(a.getAnswer());
            } else if ( "last-name".equalsIgnoreCase(a.getType()) ) {
                dto.setLastName(a.getAnswer());
            } else if ( "email".equalsIgnoreCase(a.getType()) ) {
                dto.setEmail(a.getAnswer());
            } else if ( "phone-number".equalsIgnoreCase(a.getType()) ) {
                dto.setPhoneNumber(a.getAnswer());
            } else if ( "nationality".equalsIgnoreCase(a.getType()) ) {
                dto.setNationality(a.getAnswer());
            } else if ( "address".equalsIgnoreCase(a.getType()) ) {
                dto.setAddress(a.getAnswer());
            } else if ( "post-code".equalsIgnoreCase(a.getType()) ) {
                dto.setPostCode(a.getAnswer());
            } else if ( "place".equalsIgnoreCase(a.getType()) ) {
                dto.setPlace(a.getAnswer());
            } else if ( "country".equalsIgnoreCase(a.getType()) ) {
                dto.setCountry(a.getAnswer());
            } else if ( "organization".equalsIgnoreCase(a.getType()) ) {
                dto.setOrganization(a.getAnswer());
            }
        }
        return dto;
    }
View Full Code Here

Examples of org.apache.camel.converter.dozer.dto.CustomerDTO

    public static org.apache.camel.converter.dozer.model.Customer createModelCustomer() {
        return new org.apache.camel.converter.dozer.model.Customer("Bob", "Roberts", new Address("12345", "1 main st"));
    }

    public static CustomerDTO createDtoCustomer() {
        return new CustomerDTO("Bob", "Roberts", new AddressDTO("12345", "1 main st"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.