Example #1
0
        //public static AppUser myUser = new AppUser(1, "Yo", new List<DateEvent>());
        public static AppUser AdminConfig()
        {
            var myUser     = new AppUser(1, "Yo", new List <DateEvent>());
            var anaUser    = new AppUser(2, "Ana", new List <DateEvent>());
            var benitoUser = new AppUser(3, "Benito", new List <DateEvent>());

            var myEventDateOptions = new List <DateOption>()
            {
                new DateOption(new DateTime(2020, 10, 25), anaUser),
                new DateOption(new DateTime(2020, 10, 12), anaUser),
                new DateOption(new DateTime(2020, 10, 16), myUser)
            };

            myUser.AddEvent(new DateEvent(
                                myUser,
                                "Mi evento",
                                "Descripción 1",
                                "Lugar 1",
                                1,
                                DateTime.UtcNow,
                                myEventDateOptions));

            myUser.AddEvent(new DateEvent(
                                anaUser,
                                "Evento de Ana",
                                "Descripción 2",
                                "Lugar 2",
                                2,
                                DateTime.Now,
                                new List <DateOption>()));
            myUser.AddEvent(new DateEvent(
                                benitoUser,
                                "Evento de Benito",
                                "Descripción 3",
                                "Lugar 3",
                                3,
                                DateTime.Now,
                                new List <DateOption>()));

            return(myUser);
        }