Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var teamRepository = new TeamRepository();
            var gameRepository = new GameRepository();
            var optionRepository = new GameOptionRepository();
            var gameManager = new GameManager(gameRepository, teamRepository, optionRepository, null);
            //var importer = new NflDotComGamesImporter(gameManager, teamRepository);

            //if (importer.CanImport)
            //{
            //    importer.GetData();
            //    importer.InsertData();
            //    importer.PostProcessing();
            //}

            //var importer2 = new NflDotComTeamMappingImporter(teamRepository);

            //if (importer2.CanImport)
            //{
            //    importer2.GetData();
            //    importer2.InsertData();
            //    importer2.PostProcessing();
            //}

            var importer = new FantasyDataGamesImporter(gameManager, teamRepository, optionRepository);

            importer.GetData();
            importer.InsertData();
            importer.PostProcessing();
        }
Exemplo n.º 2
0
 public GameManagerTests()
 {
     _teamRespository = new Mock<ITeamRepository>();
     _gameRespository = new Mock<IGameRepository>();
     _optionRespository = new Mock<IGameOptionRepository>();
     _pickManager = new Mock<IUserPickManager>();
     _gameManager = new GameManager(_gameRespository.Object, _teamRespository.Object, _optionRespository.Object, _pickManager.Object);
 }