public EmployeeDataSource() { IProfile peggy = new ProfileDefault { ProfileName = "Peggy" }; employees.Add(peggy); employees.Add(new ProfileSupervisor { ProfileName = "Don", Subordinates = new List<IProfile>() { peggy } }); }
public static Command BuildProfileCommand() { var cmd = new Command("profile") { Description = "Profile related actions" }; cmd.AddCommand(ProfileList.GetListCommand()); cmd.AddCommand(ProfilesCreate.GetCreateProfileCommand()); cmd.AddCommand(ProfilesDelete.GetDeleteProfileCommand()); cmd.AddCommand(ProfileDefault.GetSetDefaultCommand()); cmd.AddCommand(ProfileDefault.GetGetDefaultCommand()); return(cmd); }