public void Test()
        {
            List <Tuple <Int32, Int32, String> > A = new List <Tuple <Int32, Int32, String> >();
            List <Tuple <Int32, Int32, String> > B = new List <Tuple <Int32, Int32, String> >();
            Random rnd = new Random();

            /* Comment the testing block you do not want to run
             * /* Solution to test a wide range of keys*/
            for (int i = 0; i < 500; i += 1)
            {
                A.Add(Tuple.Create(rnd.Next(1, 101), rnd.Next(1, 101), "A"));
                B.Add(Tuple.Create(rnd.Next(1, 101), rnd.Next(1, 101), "B"));
            }
            /* Solution for essential testing*/
            A.Add(Tuple.Create(1, 2, "B11"));
            A.Add(Tuple.Create(1, 2, "B12"));
            A.Add(Tuple.Create(1, 3, "C11"));
            A.Add(Tuple.Create(1, 3, "C12"));
            A.Add(Tuple.Create(1, 3, "C13"));
            A.Add(Tuple.Create(1, 4, "D1"));
            B.Add(Tuple.Create(1, 1, "A21"));
            B.Add(Tuple.Create(1, 1, "A22"));
            B.Add(Tuple.Create(1, 1, "A23"));
            B.Add(Tuple.Create(1, 2, "B21"));
            B.Add(Tuple.Create(1, 2, "B22"));
            B.Add(Tuple.Create(1, 2, "B23"));
            B.Add(Tuple.Create(1, 3, "C2"));
            B.Add(Tuple.Create(1, 5, "E2"));
            Func <Tuple <Int32, Int32, String>, Tuple <Int32, Int32> > key = (_) => Tuple.Create(_.Item1, _.Item2);
            var watch = System.Diagnostics.Stopwatch.StartNew();
            var res   = DataReunion.FullJoin(A, key, B, key);

            watch.Stop();
            var    elapsedMs = watch.ElapsedMilliseconds;
            String aser      = JToken.FromObject(res).ToString(Formatting.Indented);

            Console.Write(elapsedMs);
        }
Exemple #2
0
        public bool AgregarAcuerdosTemas(string idTemas, string acuerdoTema)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.AgregarAcuerdosTemas(idTemas, acuerdoTema));
        }
Exemple #3
0
        public ReunionModel ResumenReunion(string idReunion)
        {
            DataReunion dataTarea = new DataReunion(Configuration);

            return(dataTarea.getReunionModificar(idReunion));
        }
Exemple #4
0
        public ReunionModel getReunionModificar(string idReunion)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.getReunionModificar(idReunion));
        }
Exemple #5
0
        public List <TemasModel> ListarTemasReunion(string idReunion)
        {
            DataReunion dataTarea = new DataReunion(Configuration);

            return(dataTarea.ListarTemasReunion(idReunion));
        }
Exemple #6
0
        public List <ReunionModel> getListarReunionFinalizadas()
        {
            DataReunion dataTarea = new DataReunion(Configuration);

            return(dataTarea.getListarReunionFinalizadas());
        }
Exemple #7
0
        public bool validarFechaReunion(string IdReunionAsistir, string usuario)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.validarFechaReunion(IdReunionAsistir, usuario));
        }
Exemple #8
0
        public List <ReunionModel> EliminarReunion(string idReunion)
        {
            DataReunion dataTarea = new DataReunion(Configuration);

            return(dataTarea.EliminarReunion(idReunion));
        }
Exemple #9
0
        public bool ModificarReunion(ReunionModel reunionModel)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.ModificarReunion(reunionModel));
        }
Exemple #10
0
        public bool TerminarReunion(string IdReunionTerminada)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.TerminarReunion(IdReunionTerminada));
        }
Exemple #11
0
        } // constructor

        public int[] CrearReunion(ReunionModel reunionModel, string idUsuario)
        {
            DataReunion dataTarea = new DataReunion(Configuration);

            return(dataTarea.CrearReunion(reunionModel, idUsuario));
        }
Exemple #12
0
        public List <ReunionModel> getTemasMinuta(string idReunion)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.getTemasMinuta(idReunion));
        }
Exemple #13
0
        public string UsuarioCreadorReunion(string IdReunionAsistir)
        {
            DataReunion dataReunion = new DataReunion(Configuration);

            return(dataReunion.UsuarioCreadorReunion(IdReunionAsistir));
        }