Exemplo n.º 1
0
    def process_client(name, email):
        event_store = store()

        client = Client()
        client.create_client(name, email)
        event_store.save(client.id, client.changes)
        return client.id
Exemplo n.º 2
0
 def test_create_client(self):
     c = Client()
     c.create_client('testName', '*****@*****.**')
     self.assertEquals(len(c.changes), 1)
Exemplo n.º 3
0
 def test_load_client(self):
     c = Client()
     c.create_client('testName', '*****@*****.**')
     load_client = Client(c.changes)
     self.assertEquals(load_client.id, c.id)