コード例 #1
0
        public FabricaDeAgendamento InformarExame(string codigo, string descricao, double preco)
        {
            TipoExame tipoExame = new TipoExame(codigo, descricao);
            Exame exame = new Exame(Guid.NewGuid(), tipoExame, preco);
            _Agendamento.AdicionarExame(exame);

            return this;
        }
コード例 #2
0
ファイル: Agendamento.cs プロジェクト: EduardoJuliao/Cursos
 public void AdicionarExame(Exame exame)
 {
     ((IList<Exame>) Exames).Add(exame);
 }
コード例 #3
0
ファイル: Agendamento.cs プロジェクト: valdineireis/Cursos
 public void AdicionarExame(Exame exame)
 {
     ((IList <Exame>)Exames).Add(exame);
 }