public CustomTaskManager()
 {
     fastClient = new Service1Client();
     slowClient = new ToDoManagerClient();
     items = new List<IToDoItem>();
     isAdded = false;
 }
 public void UpdateToDoItem(ToDoProxyItem item)
 {
     var client = new ToDoManagerClient();
     var toDoItem = new ToDoItem()
     {
         Name = item.Name,
         IsCompleted = item.IsCompleted,
         ToDoId = item.ToDoId,
         UserId = item.UserId
     };
     client.UpdateToDoItem(toDoItem);
 }
 public List<ToDoProxyItem> GetTodoList(int userId)
 {
     var client = new ToDoManagerClient();
     var userList = client.GetTodoList(userId);
     return userList.Select(x => new ToDoProxyItem()
     {
         IsCompleted = x.IsCompleted,
         Name = x.Name,
         ToDoId = x.ToDoId,
         UserId = x.UserId
     }).ToList();
 }
 public void DeleteToDoItem(int todoItemId)
 {
     var client = new ToDoManagerClient();
     client.DeleteToDoItem(todoItemId);
 }
 public int CreateUser(string name)
 {
     var client = new ToDoManagerClient();
     var id = client.CreateUser(name);
     return id;
 }
 static TascManager()
 {
     client = new ToDoManagerClient();
 }
 public DummyToDoManager()
 {
     repository = new ManagerRepository();
     client = new ToDoManagerClient();
 }