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); }
protected override void Awake() { base.Awake(); housingController = new HousingController(this, housingConfig, housingData); }