public void Setup(MapContributor contributor, ContributorsController contributorsControllerNew, bool dirty = false) { Contributor = contributor; controller = contributorsControllerNew; _dirty = dirty; nameText.text = Contributor.Name; roleText.text = Contributor.Role; imagePath = Contributor.LocalImageLocation; if (gameObject.activeInHierarchy) { CheckLoadImage(); } UpdateName(); }
public static void ClassInitialize(TestContext context) { var appService = Substitute.For <INRCodeChallengeAppService>(); sut = new ContributorsController(appService); }