Example #1
0
        public void TestDashContextForOwnerAndRepo()
        {
            var vm = new DashboardMenuViewModel {
                SelectedOwnerId = "owner", SelectedRepoId = "repo"
            };

            vm.GetDashContext().Should().Be("owner/repo");
        }
Example #2
0
        public void TestDashContextPreservesCase()
        {
            var vm = new DashboardMenuViewModel {
                SelectedOwnerId = "OwnerA", SelectedRepoId = "RepoName"
            };

            vm.GetDashContext().Should().Be("OwnerA/RepoName");
        }
Example #3
0
        public void TestDashContextForOwnerOnly()
        {
            var vm = new DashboardMenuViewModel {
                SelectedOwnerId = "owner"
            };

            vm.GetDashContext().Should().Be("owner");
        }