public void Example1() { var cs = new Client.ClientService(); var custs = new Customer.CustomerService(); var sis = new ClientItem.ClientItemService(); ClientService.CreateClient(new ClientCreateModel() { Name = "First client" }); CustomerService.CreateCustomer(1, new CustomerCreateModel() { Ammount = 1000, Nickname = "Asdfg" }); CustomerService.CreateCustomer(1, new CustomerCreateModel() { Ammount = 1000, Nickname = "Qwery" }); ClientItemService.CreateItem(1, new ClientItemCreateModel() { Name = "Emperor's sword", Code = "asdgdi", Price = 500 }); ClientItemService.CreateItem(1, new ClientItemCreateModel() { Name = "The Book of Magnus", Code = "ygfoewrg", Price = 120 }); ClientItemService.CreateItem(1, new ClientItemCreateModel() { Name = "Sword of phoenix", Code = "sabgoiswbvg", Price = 400 }); string i1 = ClientItemService.GetItem(1, "asdgdi").Code; string i2 = ClientItemService.GetItem(1, "ygfoewrg").Code; string i3 = ClientItemService.GetItem(1, "sabgoiswbvg").Code; custs.ItemPurchase(1, 1, i1); custs.ItemPurchase(1, 1, i2); custs.ItemPurchase(1, 2, i3); }
public void GetItem(int clientId, string code) { ClientItemService.GetItem(clientId, code); }