Пример #1
0
        public UserControllerUnitTest()
        {
            _weatherManager = new WeatherManagerFake();
            var mapper = new Mapper(new MapperConfiguration(cfg => cfg.AddProfile(new MappingProfile())));

            _controller = new UsersController(_userManager.Object, _roleManager.Object, mapper);
        }
Пример #2
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  IGreeting saludos, IGreeting <EnglishGreetings> greeting, IWeatherManager weatherManager)
 {
     _logger         = logger;
     _saludos        = saludos;
     _greetings      = greeting;
     _weatherManager = weatherManager;
 }
Пример #3
0
 public JoggingsController(IJoggingRepository repo, IMapper mapper, IWeatherManager weatherManager,
                           UserManager <User> userManager)
 {
     _repo           = repo;
     _mapper         = mapper;
     _weatherManager = weatherManager;
     _userManager    = userManager;
 }
        public JoggingControllerUnitTest()
        {
            _joggingRepo    = new JoggingRepositoryFake();
            _weatherManager = new WeatherManagerFake();
            var mapper = new Mapper(new MapperConfiguration(cfg => cfg.AddProfile(new MappingProfile())));

            _controller = new JoggingsController(_joggingRepo, mapper, _weatherManager, _userManager.Object);
        }
Пример #5
0
 public CustomersController(ICustomerService dataRepositoryService, IWeatherManager weatherManager,
                            IClientConfiguration clientConfiguration, ILogger <CustomersController> logger, IServiceDataProtection dataProtection)
 {
     _dataService         = dataRepositoryService;
     _weatherManager      = weatherManager;
     _clientConfiguration = clientConfiguration;
     _logger         = logger;
     _dataProtection = dataProtection;
 }
        public static void InitializeWeatherMap(this IWeatherManager manager, int weatherSizeX, int weatherSizeY)
        {
            var newMap = new WeatherMap(GameManager.Instance.GameTime, weatherSizeX, weatherSizeY);

            newMap.LoadMap(SystemFileTypes.StarMap, newMap.StarMap.ToList());
            newMap.LoadMap(SystemFileTypes.SunMap, newMap.SunMap.ToList());
            newMap.LoadMap(SystemFileTypes.MoonMap, newMap.MoonMap.ToList());
            newMap.Initialize();
            manager.Weather = newMap;
        }
        public static void WeatherMessage(this IWeatherManager manager, string txt, int x, int y)
        {
            var players = db.DESCRIPTORS.Where(c => c.ConnectionStatus == ConnectionTypes.Playing &&
                                               c.Character != null &&
                                               c.Character.IsOutside() &&
                                               c.Character.IsAwake() && c.Character.CurrentRoom?.Area != null &&
                                               c.Character.CurrentRoom.Area.WeatherX == x &&
                                               c.Character.CurrentRoom.Area.WeatherY == y);

            players.ToList().ForEach(p => p.Character.SendTo(txt));
        }
Пример #8
0
 public WeatherController(IWeatherManager manager)
 {
     _manager = manager;
 }
Пример #9
0
 public WeatherController(IWeatherManager manager, UserManager <ApplicationUser> userManager, IStringLocalizer <WeatherController> localizer)
 {
     this.manager     = manager;
     this.userManager = userManager;
     this.localizer   = localizer;
 }
Пример #10
0
 public WeatherDetailPageModel(IWeatherManager weatherManager)
 {
     _weatherManager = weatherManager;
 }
Пример #11
0
 public WeatherController(IWeatherManager weatherManager)
 {
     WeatherManager = weatherManager;
 }