Exemplo n.º 1
0
def expected_save_result():
    customer = Customer()
    customer.set_identifier("ecf7d5ab-b609-4926-b584-491228739440")
    customer.set_first_name("Kevin")
    customer.set_last_name("Anderson")
    customer.set_middle_initial("A")
    return customer
Exemplo n.º 2
0
def general_test_customer():
    customer = Customer()
    customer.set_identifier("9b4a56ea-de9b-4662-9c12-646033d77483")
    customer.set_first_name("Test")
    customer.set_last_name("User")
    customer.set_middle_initial("R")
    return customer
Exemplo n.º 3
0
def expected_find_by_id_result():
    customer = Customer()
    customer.set_identifier("7d0e2324-7057-435f-8510-f05a6bb2d7f5")
    customer.set_first_name("Jane")
    customer.set_last_name("Smith")
    customer.set_middle_initial("K")
    return customer
Exemplo n.º 4
0
def expected_update_result():
    customer = Customer()
    customer.set_identifier("ba6a4e88-534f-416d-bf6e-985bd6d03b84")
    customer.set_first_name("Ann")
    customer.set_last_name("Jones")
    customer.set_middle_initial("B")
    return customer
Exemplo n.º 5
0
def expected_find_all_result():
    customer = Customer()
    customer.set_identifier("9186630c-a671-4d20-b38d-c627d21da302")
    customer.set_first_name("John")
    customer.set_last_name("Doe")
    customer.set_middle_initial("S")

    results = set()
    results.add(customer)
    return results
Exemplo n.º 6
0
def test_get_set_last_name():
    cust = Customer()
    cust.set_last_name("Doe")
    assert cust.get_last_name() == "Doe"