Пример #1
0
 public BookRoomController(IBuildingService buildings, IFloorService floors, IRoomService rooms, IStudentService students)
 {
     this.buildings = buildings;
     this.floors = floors;
     this.rooms = rooms;
     this.students = students;
 }
Пример #2
0
 public AdminController(IAdminService adminService,
     IUserService userService,
     IBanService banService,
     IBuildingService buildingService,
     IQueueService queueService,
     IUserBuildingService userBuildingService,
     IUserProductService userProductService,
     IMapService mapService,
     IMarketService marketService,
     IDolarService dolarService,
     IDealService dealService,
     INotificationService notificationService,
     IProductService productService,
     IMessageService messageService,
     IProductRequirementsService productRService)
 {
     _adminService = adminService;
     _userService = userService;
     _banService = banService;
     _buildingService = buildingService;
     _queueService = queueService;
     _userBuildingService = userBuildingService;
     _userProductService = userProductService;
     _mapService = mapService;
     _marketService = marketService;
     _dolarService = dolarService;
     _dealService = dealService;
     _notificationService = notificationService;
     _productService = productService;
     _messageService = messageService;
     _productRService = productRService;
 }
Пример #3
0
 public BuildingController(IBuildingService buildings, IRoomService rooms, IConsumptionService consumptions, IFloorService floors)
 {
     this.buildings = buildings;
     this.consumptions = consumptions;
     this.floors = floors;
     this.rooms = rooms;
 }
Пример #4
0
        public MiningGoal(MiningModel model, Db db, IBuildingService service)
        {
            this.model   = model;
            this.db      = db;
            this.service = service;

            Mining = new ReactiveProperty <bool>();
        }
Пример #5
0
 public ConfigurationController()
 {
     _administratorService      = new AdministratorServiceImpl(context);
     _userService               = new UserServiceImpl(context);
     _residentDepartmentService = new ResidentDepartmentServiceImpl(context);
     _departmentService         = new DepartmentServiceImpl(context);
     _buildingService           = new BuildingServiceImpl(context);
 }
Пример #6
0
 public BuildingUsersController(IBuildingService buildingService, IAuthenticationService authenticationService,
                                ICustomEncoder customEncoder, IUserService userService)
 {
     _authenticationService = authenticationService;
     _buildingService       = buildingService;
     _customEncoder         = customEncoder;
     _userService           = userService;
 }
Пример #7
0
 public GoalConstructor(BuildingRender building, Db db, IBuildingService buildingService,
                        ProgressConstructor progressConstructor)
 {
     this.building            = building;
     this.db                  = db;
     this.buildingService     = buildingService;
     this.progressConstructor = progressConstructor;
 }
Пример #8
0
        public AllCertificatesViewModel(ICertificatesService certificatesService, IBuildingService buildingService)
        {
            Title = "Certificates on cloud";

            _certificatesService   = certificatesService;
            _buildingService       = buildingService;
            Certificates           = new ObservableCollectionFast <CertificateRowSelect>();
            DownloadedCertificates = new List <Certificate>();
        }
Пример #9
0
        public BuildingsViewModel(IBuildingsService buildingsService, IBuildingService buildingService)
        {
            Title = "Buildings";

            _buildingsService = buildingsService;
            _buildingService  = buildingService;

            Buildings = new ObservableCollectionFast <BuildingRow>();
        }
Пример #10
0
        public CertificatesViewModel(ICertificatesService certificatesService, IBuildingService buildingService)
        {
            Title = "Certificates";

            _certificatesService = certificatesService;
            _buildingService     = buildingService;

            Certificates = new ObservableCollectionFast <Certificate>();
        }
Пример #11
0
        public PurchaseService(ApplicationDbContext applicationDbContext, IRestrictionsService restrictionsService, IHttpContextAccessor httpContextAccessor, IBuildingService buildingService, IShipService shipService)
        {
            this.restrictionsService = restrictionsService;
            this.buildingService     = buildingService;
            this.shipService         = shipService;
            var user = httpContextAccessor.HttpContext.User.Claims.FirstOrDefault(c => c.Type == "Username").Value;

            kingdom = applicationDbContext.Kingdoms.Include(k => k.User).Include(k => k.Ships).Include(k => k.Buildings).FirstOrDefault(k => k.User.Username == user);
        }
Пример #12
0
        public BuildingPresenter(IKernel kernel, IBuildingView view, IBuildingService service)
        {
            _kernel  = kernel;
            _view    = view;
            _service = service;

            _view.SetUp        += SetUp;
            _view.CallElevator += CallElevator;
        }
Пример #13
0
 public HomeController(ILogger <HomeController> logger, IBuildingService buildingService,
                       ILockService lockService, IGroupService groupService, IMediaService mediaService)
 {
     _logger          = logger;
     _buildingService = buildingService;
     _lockService     = lockService;
     _groupService    = groupService;
     _mediaService    = mediaService;
 }
Пример #14
0
        public void Awake()
        {
            db              = dataBuilder.Create();
            shopService     = new ClientServiceImpl(db);
            buildingService = new ClientServiceImpl(db);

            InjectDependencies();
            Initialize();
        }
 public BuildingsController(IPlayerService playerService, IUserService userService, IBuildingService buildingService, ICityService cityService, IStockService stockService, ICurrentBuildingService currentBuildingService)
 {
     _playerService          = playerService;
     _userService            = userService;
     _buildingService        = buildingService;
     _cityService            = cityService;
     _stockService           = stockService;
     _currentBuildingService = currentBuildingService;
 }
Пример #16
0
 public BuildingController(
     IBuildingRepository buildingRepository,
     IBuildingService buildingService,
     IMapper mapper
     )
 {
     this.buildingRepository = buildingRepository;
     this.buildingService    = buildingService;
     this.mapper             = mapper;
 }
Пример #17
0
 public RoomController(IRoomService roomService,
                       IBuildingService buildingService,
                       IServiceService serviceService,
                       IMinuteServiceService minuteServiceService)
 {
     _roomService          = roomService;
     _buildingService      = buildingService;
     _serviceService       = serviceService;
     _minuteServiceService = minuteServiceService;
 }
Пример #18
0
        void CreateBuildings()
        {
            IBuildingService       buildingService       = ServiceLocator.Instance.GetService <IBuildingService>();
            IBuildingVisualFactory buildingVisualFactory = ServiceLocator.Instance.GetService <IBuildingVisualFactory>();

            foreach (var building in buildingService.GetAllBuildings())
            {
                buildingVisualFactory.CreateVisualForBuilding(building);
            }
        }
Пример #19
0
        void Awake()
        {
            this.buildingService = ServiceLocator.Instance.GetService <IBuildingService>();
            this.buildingConfigurationService = ServiceLocator.Instance.GetService <IBuildingConfigurationService>();

            this.RegisterEvents();

            this.toggleButtonGroup.Init();

            this.InitialiseBuildings();
        }
Пример #20
0
        public void SetUp()
        {
            _kernel = new NSubstituteMockingKernel();
            _kernel.Bind<BuildingPresenter>().ToMock();

            _view = Substitute.For<ISetUpView>();
            _service = Substitute.For<IBuildingService>();

            var presenter = new SetUpPresenter(_kernel, _view, _service);
            presenter.Run();
        }
Пример #21
0
 public BuildingController(IBuildingService buildingService, ILogger <BuildingController> logger,
                           IMapper mapper, IUserIdentity userIdentity, IUserService userService,
                           IDistrictService districtService)
 {
     _buildingService = buildingService ?? throw new ArgumentNullException(nameof(buildingService));
     _logger          = logger;
     _mapper          = mapper;
     _userIdentity    = userIdentity;
     _userService     = userService;
     _districtService = districtService;
 }
 public void Inject(Db db,
                    IBuildingAcquirer acquirer,
                    IBuildingService service,
                    IFieldContainer fieldContainer,
                    BuildingAssets buildingAssets)
 {
     this.db             = db;
     this.acquirer       = acquirer;
     this.service        = service;
     this.fieldContainer = fieldContainer;
     this.buildingAssets = buildingAssets;
 }
Пример #23
0
        public void SetUp()
        {
            _kernel = new NSubstituteMockingKernel();

            _view    = Substitute.For <IBuildingView>();
            _service = Substitute.For <IBuildingService>();
            _service.NumberOfFloors.Returns(5);

            var presenter = new BuildingPresenter(_kernel, _view, _service);

            presenter.Run();
        }
 public BuildingController(
     IFormHandlerFactory formHandlerFactory,
     IAuthorizationService authorizationService,
     IBuildingService buildingService,
     IMapper mapper)
     : base(
         formHandlerFactory,
         authorizationService)
 {
     _buildingService = buildingService;
     _mapper          = mapper;
 }
Пример #25
0
        public void TryToPlace()
        {
            IBuildingService buildingService = ServiceLocator.Instance.GetService <IBuildingService>();

            if (buildingService.CanPlaceBuilding(this.building))
            {
                buildingService.PlaceBuilding(this.building);
            }
            else
            {
                this.visual.Remove();
            }
        }
 public PropertiesController(
     IPropertyService propertyService,
     IPropertyTypeService propertyTypeService,
     IAppUserService appUserService,
     IMapper mapper,
     IBuildingService buildingService)
 {
     this.propertyService     = propertyService;
     this.propertyTypeService = propertyTypeService;
     this.appUserService      = appUserService;
     this.mapper          = mapper;
     this.buildingService = buildingService;
 }
 public EntranceController(
     IFormHandlerFactory formHandlerFactory,
     IAuthorizationService authorizationService,
     IEntranceService entranceService,
     IMapper mapper, IBuildingService buildingService)
     : base(
         formHandlerFactory,
         authorizationService)
 {
     _entranceService = entranceService;
     _mapper          = mapper;
     _buildingService = buildingService;
 }
Пример #28
0
 public BuildingPresntation(
     UserManager <User> userManager,
     IGenericRepository <Appartament> appartamentRepo,
     IGenericRepository <UserAppartament> userAppartamentRepo,
     IBuildingService buildingService,
     IMapper mapper)
 {
     _userManager         = userManager;
     _appartamentRepo     = appartamentRepo;
     _userAppartamentRepo = userAppartamentRepo;
     _buildingService     = buildingService;
     _mapper = mapper;
 }
Пример #29
0
        public void ResetAndQuit()
        {
            IBuildingService buildingService = ServiceLocator.Instance.GetService <IBuildingService>();

            buildingService.Clear();
            buildingService.Save();

            #if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
            #else
            Application.Quit();
            #endif
        }
        private static void ListBuildingsByVillage(int villageId)
        {
            buildingService = Container.Resolve <IBuildingService>();
            IEnumerable <BuildingDTO> v1Buildings = buildingService.ListBuildingsByVillage(1);

            foreach (var item in v1Buildings)
            {
                Console.WriteLine("ID: " + item.ID);
                Console.WriteLine("BuildingType: " + item.BuildingType);
                Console.WriteLine("Cost: " + item.Cost);
                Console.WriteLine("Workers assigned: " + item.WorkersAssigned);
                Console.WriteLine();
            }
        }
Пример #31
0
 public AdminService(IUnitOfWork unitOfWork, IAllotFlowService allotFlowService, IProjectAllotFlowSurveyService projectAllotFlowSurveyService,
                     IHouseService houseService, ISysRoleMenuFunctionService functionService, IPhotoService photoService,
                     IProjectService projectService, IBuildingService buildingService, ICityService cityService)
 {
     this._allotFlowService = allotFlowService;
     this._unitOfWork       = unitOfWork;
     this._houseService     = houseService;
     this._functionService  = functionService;
     this._projectAllotFlowSurveyService = projectAllotFlowSurveyService;
     this._photoService    = photoService;
     this._projectService  = projectService;
     this._buildingService = buildingService;
     this._cityService     = cityService;
 }
        public BuildingHosted(Building building, IBuildingService buildingService)
        {
            _building        = building;
            _buildingService = buildingService;

            _statusActions = new Dictionary <BuildingStatus, Action>
            {
                { BuildingStatus.Active, ActiveBuilding },
                { BuildingStatus.Dismantling, DismantlingBuilding },
                { BuildingStatus.Construction, ConstructionBuilding },
            };

            InitThread();
        }
Пример #33
0
        void InitialiseServices()
        {
            IBuildingConfigurationService buildingConfigurationService = ServiceLocator.Instance.GetService <IBuildingConfigurationService>();
            BuildingLibrary library = Resources.Load <BuildingLibrary>(BuildingLibrary.RESOURCE_LOCATION);

            buildingConfigurationService.UpdateConfiguration(library);

            IGameboard             gameboard       = ServiceLocator.Instance.GetService <IGameboard>();
            GameboardConfiguration gameboardConfig = Resources.Load <GameboardConfiguration>(GameboardConfiguration.RESOURCE_LOCATION);

            gameboard.Initialise(gameboardConfig);

            IBuildingService buildingService = ServiceLocator.Instance.GetService <IBuildingService>();

            buildingService.Load();
        }
Пример #34
0
 public PointsController(IBuildingService service)
 {
     _buildingService = service;
 }
 public EquipmentController(IBuildingService buildingService)
 {
     _buildingService = buildingService;
 }
Пример #36
0
 public BuildingController(IBuildingService buildingService)
 {
     this._buildingService = buildingService;
 }