コード例 #1
0
    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();
    }
コード例 #2
0
        public static void ClassInitialize(TestContext context)
        {
            var appService = Substitute.For <INRCodeChallengeAppService>();

            sut = new ContributorsController(appService);
        }