Пример #1
0
        public void TestSetup()
        {
            var horseToHorseDetailMapper  = new HorseToHorseDetailMapper();
            var horseToHorseSummaryMapper = new HorseToHorseSummaryMapper();

            _controller = new HorsesController(_horseService.Object,
                                               horseToHorseDetailMapper,
                                               horseToHorseSummaryMapper);
        }
        public IndexTests()
        {
            _horseService = new Mock <IHorseService>();

            var horseToHorseDetailMapper  = new HorseToHorseDetailMapper();
            var horseToHorseSummaryMapper = new HorseToHorseSummaryMapper();

            _controller = new HorsesController(_horseService.Object,
                                               horseToHorseSummaryMapper,
                                               horseToHorseDetailMapper);
        }