void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } }
public void ConstructorShouldRegisterAllDependencies() { // Arrange var apiResult = new Mock <IApiResult>().Object; // Act var controller = new IconsController(apiResult); // Assert controller.Should().NotBeNull(); }