コード例 #1
0
        private void CareerButton_Click(object sender, RoutedEventArgs e)
        {
            string careerFortune = repo.GetByCategory("Career");

            FortuneOutput.Text = careerFortune;
            CookieMoveOut();
            FortuneOutputVisibility();
        }
コード例 #2
0
 public void DatabaseGetFortuneByCategory()
 {
     repo.Clear();
     repo.Add(new FortuneItem("Your job will take a turn for the worst", "Careers"));
     repo.Add(new FortuneItem("Your significant other will break up with you", "Relationships"));
     Assert.AreEqual("Your job will take a turn for the worst", repo.GetByCategory("Careers"));
 }