Пример #1
0
 public RestaurantsController(IAuthenticationProvider authProvider, IRestaurantsService restaurantsService,
                              IModelsMapper mapper)
 {
     this.authProvider       = authProvider;
     this.restaurantsService = restaurantsService;
     this.mapper             = mapper;
 }
Пример #2
0
 public TestClass(IGameRepository gameStateRepository, ICoordinatesParser coordinatesParser, IModelsMapper modelMapper)
     : base(gameStateRepository, coordinatesParser, modelMapper)
 {
     GameStateRepository = gameStateRepository;
     CoordinatesParser   = coordinatesParser;
     ModelMapper         = modelMapper;
 }
Пример #3
0
 public UsersController(IUsersService usersService, IAuthenticationProvider authProvider,
                        IModelsMapper mapper)
 {
     this.usersService = usersService;
     this.authProvider = authProvider;
     this.mapper       = mapper;
 }
Пример #4
0
        private TestClass Create()
        {
            IGameRepository    gameStateRepository = A.Fake <IGameRepository>();
            ICoordinatesParser coordinatesParser   = A.Fake <ICoordinatesParser>();
            IModelsMapper      modelMapper         = A.Fake <IModelsMapper>();

            return(new TestClass(gameStateRepository, coordinatesParser, modelMapper));
        }
 public SeaBattleGameService(
     IGameRepository gameStateRepository,
     ICoordinatesParser coordinatesParser,
     IModelsMapper modelMapper)
 {
     _gameStateRepository = gameStateRepository.NotNull(nameof(gameStateRepository));
     _coordinatesParser   = coordinatesParser.NotNull(nameof(coordinatesParser));
     _modelMapper         = modelMapper.NotNull(nameof(modelMapper));
 }
Пример #6
0
 public BookingsController(IBookingsService bookingsService, IAuthenticationProvider authProvider, IModelsMapper mapper)
 {
     this.bookingsService = bookingsService;
     this.authProvider    = authProvider;
     this.mapper          = mapper;
 }