Ejemplo n.º 1
0
 public BookRoomController(IBuildingService buildings, IFloorService floors, IRoomService rooms, IStudentService students)
 {
     this.buildings = buildings;
     this.floors = floors;
     this.rooms = rooms;
     this.students = students;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public BuildingController(IBuildingService buildings, IRoomService rooms, IConsumptionService consumptions, IFloorService floors)
 {
     this.buildings = buildings;
     this.consumptions = consumptions;
     this.floors = floors;
     this.rooms = rooms;
 }
Ejemplo n.º 4
0
        public MiningGoal(MiningModel model, Db db, IBuildingService service)
        {
            this.model   = model;
            this.db      = db;
            this.service = service;

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

            _certificatesService   = certificatesService;
            _buildingService       = buildingService;
            Certificates           = new ObservableCollectionFast <CertificateRowSelect>();
            DownloadedCertificates = new List <Certificate>();
        }
Ejemplo n.º 9
0
        public BuildingsViewModel(IBuildingsService buildingsService, IBuildingService buildingService)
        {
            Title = "Buildings";

            _buildingsService = buildingsService;
            _buildingService  = buildingService;

            Buildings = new ObservableCollectionFast <BuildingRow>();
        }
Ejemplo n.º 10
0
        public CertificatesViewModel(ICertificatesService certificatesService, IBuildingService buildingService)
        {
            Title = "Certificates";

            _certificatesService = certificatesService;
            _buildingService     = buildingService;

            Certificates = new ObservableCollectionFast <Certificate>();
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 12
0
        public BuildingPresenter(IKernel kernel, IBuildingView view, IBuildingService service)
        {
            _kernel  = kernel;
            _view    = view;
            _service = service;

            _view.SetUp        += SetUp;
            _view.CallElevator += CallElevator;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 16
0
 public BuildingController(
     IBuildingRepository buildingRepository,
     IBuildingService buildingService,
     IMapper mapper
     )
 {
     this.buildingRepository = buildingRepository;
     this.buildingService    = buildingService;
     this.mapper             = mapper;
 }
Ejemplo n.º 17
0
 public RoomController(IRoomService roomService,
                       IBuildingService buildingService,
                       IServiceService serviceService,
                       IMinuteServiceService minuteServiceService)
 {
     _roomService          = roomService;
     _buildingService      = buildingService;
     _serviceService       = serviceService;
     _minuteServiceService = minuteServiceService;
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 19
0
        void Awake()
        {
            this.buildingService = ServiceLocator.Instance.GetService <IBuildingService>();
            this.buildingConfigurationService = ServiceLocator.Instance.GetService <IBuildingConfigurationService>();

            this.RegisterEvents();

            this.toggleButtonGroup.Init();

            this.InitialiseBuildings();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 34
0
 public PointsController(IBuildingService service)
 {
     _buildingService = service;
 }
 public EquipmentController(IBuildingService buildingService)
 {
     _buildingService = buildingService;
 }
Ejemplo n.º 36
0
 public BuildingController(IBuildingService buildingService)
 {
     this._buildingService = buildingService;
 }