public Client(UserFactory user_factory) { abstractUser = user_factory.CreateUser(); abstracttype = user_factory.CreateType(); }
// Constructor public UserClient(UserFactory factory, UserModel userModel) { _userModel = factory.CreateUser(userModel); _userSave = factory.SaveUSer(); }