Пример #1
0
        public bool GetHousingController(out HousingController controller)
        {
            controller = new HousingController();
            if (!GetActiveLayout(out var manager) ||
                !manager.HousingController.HasValue)
            {
                return(false);
            }

            controller = manager.HousingController.Value;
            return(true);
        }
 public void SetUp()
 {
     _mockGetAllResidentsUseCase = new Mock <IGetAllResidentsUseCase>();
     _mockGetResidentByIdUseCase = new Mock <IGetResidentByIdUseCase>();
     _classUnderTest             = new HousingController(_mockGetAllResidentsUseCase.Object, _mockGetResidentByIdUseCase.Object);
 }
Пример #3
0
 protected override void Awake()
 {
     base.Awake();
     housingController = new HousingController(this, housingConfig, housingData);
 }