Exemplo n.º 1
0
        public BoatClassControllerTests()
        {
            _clubServiceMock = ControllerTestUtilities.MakeCoreClubServiceMock();
            _authServiceMock = ControllerTestUtilities.MakeAuthServiceMock();

            _classServiceMock = new Mock <SailScores.Web.Services.Interfaces.IBoatClassService>();

            _controller = new BoatClassController(
                _clubServiceMock.Object,
                _classServiceMock.Object,
                _authServiceMock.Object);
        }
Exemplo n.º 2
0
        public CompetitorControllerTests()
        {
            var config = new MapperConfiguration(opts =>
            {
                opts.AddProfile(new DbToModelMappingProfile());
            });

            _mapper = config.CreateMapper();

            _clubServiceMock       = ControllerTestUtilities.MakeCoreClubServiceMock();
            _competitorServiceMock = ControllerTestUtilities.MakeWebCompetitorServiceMock();
            _adminTipServiceMock   = ControllerTestUtilities.MakeAdminTipServiceMock();
            _authServiceMock       = ControllerTestUtilities.MakeAuthServiceMock();


            _controller = new CompetitorController(
                _clubServiceMock.Object,
                _competitorServiceMock.Object,
                _authServiceMock.Object,
                _adminTipServiceMock.Object,
                _mapper);
        }