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); }
public bool AgregarAcuerdosTemas(string idTemas, string acuerdoTema) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.AgregarAcuerdosTemas(idTemas, acuerdoTema)); }
public ReunionModel ResumenReunion(string idReunion) { DataReunion dataTarea = new DataReunion(Configuration); return(dataTarea.getReunionModificar(idReunion)); }
public ReunionModel getReunionModificar(string idReunion) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.getReunionModificar(idReunion)); }
public List <TemasModel> ListarTemasReunion(string idReunion) { DataReunion dataTarea = new DataReunion(Configuration); return(dataTarea.ListarTemasReunion(idReunion)); }
public List <ReunionModel> getListarReunionFinalizadas() { DataReunion dataTarea = new DataReunion(Configuration); return(dataTarea.getListarReunionFinalizadas()); }
public bool validarFechaReunion(string IdReunionAsistir, string usuario) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.validarFechaReunion(IdReunionAsistir, usuario)); }
public List <ReunionModel> EliminarReunion(string idReunion) { DataReunion dataTarea = new DataReunion(Configuration); return(dataTarea.EliminarReunion(idReunion)); }
public bool ModificarReunion(ReunionModel reunionModel) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.ModificarReunion(reunionModel)); }
public bool TerminarReunion(string IdReunionTerminada) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.TerminarReunion(IdReunionTerminada)); }
} // constructor public int[] CrearReunion(ReunionModel reunionModel, string idUsuario) { DataReunion dataTarea = new DataReunion(Configuration); return(dataTarea.CrearReunion(reunionModel, idUsuario)); }
public List <ReunionModel> getTemasMinuta(string idReunion) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.getTemasMinuta(idReunion)); }
public string UsuarioCreadorReunion(string IdReunionAsistir) { DataReunion dataReunion = new DataReunion(Configuration); return(dataReunion.UsuarioCreadorReunion(IdReunionAsistir)); }