Examples of Customer


Examples of com.xebia.lottery.domain.aggregates.Customer

    public CreateCustomerCommandHandler() {
        super(CreateCustomerCommand.class);
    }

    public void handleMessage(CreateCustomerCommand message) {
        Customer customer = customerFactory.create(message.getCustomerId(), message.getInfo(), message.getInitialAccountBalance());
        repository.add(customer);
    }
View Full Code Here

Examples of customer.Customer

public class CustomerRegistryImpl implements CustomerRegistry {
    private Map<String, Customer> customers = new HashMap<String, Customer>();
   
    @Init
    public void init() {
        Customer c1 = new Customer();
        c1.setId("001");
        c1.setName("John Smith");
        customers.put(c1.getId(), c1);
       
        Customer c2 = new Customer();
        c2.setId("002");
        c2.setName("Jane Smith");
        customers.put(c2.getId(), c2);
    }
View Full Code Here

Examples of customer.v1.Customer

    private ConcurrentHashMap<String, Customer> customers =
        new ConcurrentHashMap<String, Customer>();

    public List<Customer> getCustomersByName(String name) throws NoSuchCustomerException {
        Customer customer = getCustomerByName(name);

        List<Customer> customers = new ArrayList<Customer>();
        customers.add(customer);

        return customers;
View Full Code Here

Examples of customer.v2.Customer

    private ConcurrentHashMap<String, Customer> customers =
        new ConcurrentHashMap<String, Customer>();

    public List<Customer> getCustomersByName(String name) throws NoSuchCustomerException {
        Customer customer = getCustomerByName(name);

        List<Customer> customers = new ArrayList<Customer>();
        customers.add(customer);

        return customers;
View Full Code Here

Examples of cz.muni.fi.pa165.stis.entity.Customer

    }

    @Test
    public void testCreate() {
        service.create(customerTO);
        final Customer c = customer;
        verify(dao).create(argThat(new BaseMatcher<Customer>() {

            @Override
            public boolean matches(Object item) {
                if (!(item instanceof Customer)) {
                    return false;
                }
                final Customer other = (Customer) item;
                if (!Objects.equals(c.getId(), other.getId())) {
                    return false;
                }
                if (!Objects.equals(c.getFirstName(), other.getFirstName())) {
                    return false;
                }
                if (!Objects.equals(c.getLastName(), other.getLastName())) {
                    return false;
                }
                if (!Objects.equals(c.getAddress(), other.getAddress())) {
                    return false;
                }
                if (!Objects.equals(c.getPhone(), other.getPhone())) {
                    return false;
                }
               
                return true;
            }
View Full Code Here

Examples of de.demo.persistence.entity.Customer

        }
        return result;
    }

    private static Customer createUniqueCustomer(final Integer id) {
        Customer customer = new Customer();
        customer.setCity("Munich");
        customer.setName("Advisor");
        customer.setKundennummer(new BigDecimal(id));
        return customer;
    }
View Full Code Here

Examples of de.forsthaus.backend.model.Customer

    final int countRecords = newRecords;

    final RandomDataEngine randomDataEngine = new RandomDataEngine();

    for (int j = 0; j < countRecords; j++) {
      final Customer customer = getCustomerService().getNewCustomer();

      customer.setKunName1(randomDataEngine.getRandomManFirstname());
      customer.setKunName2(randomDataEngine.getRandomLastname());
      customer.setKunMatchcode(customer.getKunName2().toUpperCase());
      customer.setKunOrt(randomDataEngine.getRandomCity());
      customer.setBranche(branche);
      customer.setKunMahnsperre(false);

      // if no customer no. is set by user than take
      // the max PrimaryKey + 1
      if (customer.getKunNr().isEmpty()) {
        customer.setKunNr(String.valueOf(getCustomerService().getMaxCustomerId() + 1));
      }

      getCustomerService().saveOrUpdate(customer);
    }
View Full Code Here

Examples of de.linwave.junit.inheritance.Customer

      for (int i = 0; i < MAX; i++) {
        Person p = new Person("Joeckel", "Lothar");
        db.store(p);

        Customer customer = new Customer("CUST4711", "CUSTOMER");
        customer.setFirstName("customerFirstName");
        customer.setLastName("customerLastname");
        db.store(customer);

        GoldCustomer gold = new GoldCustomer("GOLD4712", "GOLD_CUSTOMER");
        gold.setFirstName("goldCustomerFirstName");
        gold.setLastName("goldCustomerLastname");
View Full Code Here

Examples of de.odysseus.staxon.sample.data.Customer

public class CustomerResource {
  private Customer newCustomer(
      String firstName, String lastName,
      String street,
      String... phoneNumbers) {
    Customer customer = new Customer();
    customer.firstName = firstName;
    customer.lastName = lastName;
    customer.address = new Address();
    customer.address.street = street;
    customer.phoneNumbers = new ArrayList<PhoneNumber>();
View Full Code Here

Examples of de.olivergierke.whoops.customer.Customer

  @Autowired CustomerService customerService;

  @Test
  public void createNewUser() {

    Customer customer = customerService.createCustomer("Dave", "Matthews");
    assertThat(customer.getCustomerNumber(), is(notNullValue()));
  }
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.