public void SetVisibilityOfCatalog(bool isVisible) { isCatalogOpen = isVisible; view.SetVisibilityOfCatalog(isCatalogOpen); if (isVisible) { OnCatalogOpen?.Invoke(); } }
public void SetVisibilityOfCatalogCorrectly(bool isVisible) { // Act buildModeHUDView.SetVisibilityOfCatalog(isVisible); // Assert if (isVisible) { testControllers.sceneCatalogController.Received(1).OpenCatalog(); } else { testControllers.sceneCatalogController.Received(1).CloseCatalog(); } }