Exemplo n.º 1
0
 public Statistician(IRaceRepository raceRepository, ISeasonRepository seasonRepository, IDriverRepository driverRepository, IDriverContractRepository contractRepository)
 {
     _raceRepository = raceRepository;
     _seasonRepository = seasonRepository;
     _driverRepository = driverRepository;
     _contractRepository = contractRepository;
 }
Exemplo n.º 2
0
        public void SetUp()
        {
            _raceRepository = MockRepository.GenerateMock<IRaceRepository>();
            _seasonRepository = MockRepository.GenerateMock<ISeasonRepository>();
            _driverRepository = MockRepository.GenerateMock<IDriverRepository>();
            _contractRepository = MockRepository.GenerateMock<IDriverContractRepository>();

            _statistician = new Statistician(_raceRepository, _seasonRepository, _driverRepository, _contractRepository);
        }