Advertisement
Guest User

Untitled

a guest
May 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. public static Concurso ObterConcursoValidoParaIntegracaoDeSistema()
  2. {
  3. Bolao bolao = new Bolao();
  4. List<Aposta> listaApostas = new List<Aposta>();
  5. listaApostas = bolao.GerarApostas(new Random(), 100);
  6.  
  7. Concurso concurso = new Concurso
  8. {
  9. Codigo = "1",
  10. DataTermino = DateTime.Now.AddDays(7),
  11. ListaApostas = listaApostas,
  12. Premio = 100000
  13. };
  14.  
  15. concurso.GerarResultado();
  16.  
  17. return concurso;
  18. }
  19.  
  20. public static Concurso ObterConcursoValidoParaIntegracaoDeSistema_SemResultado()
  21. {
  22. Bolao bolao = new Bolao();
  23. List<Aposta> listaApostas = new List<Aposta>();
  24. listaApostas = bolao.GerarApostas(new Random(), 100);
  25.  
  26. Concurso concurso = new Concurso
  27. {
  28. Codigo = "1",
  29. DataTermino = DateTime.Now.AddDays(7),
  30. ListaApostas = listaApostas,
  31. Premio = 100000
  32. };
  33.  
  34. return concurso;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement