Ejemplo n.º 1
0
        private void SeedJoke()
        {
            Jokes = new List <Joke>();
            Joke joke1 = new Joke
            {
                Id       = 1,
                Title    = "Bar 1",
                Question = "An amnesiac walks into a bar",
                Answer   = "He goes up to a beautiful blond and says: So, do I come here often?",
                Grade    = 2
            };

            Joke joke2 = new Joke
            {
                Id       = 2,
                Title    = "Bar 2",
                Question = "A neutron walks into a bar.",
                Answer   = "How much for a beer? the neutron asks. For you no charge",
                Grade    = 3
            };

            Jokes.Add(joke1);
            Jokes.Add(joke2);
        }