示例#1
0
        public static RemixGoContext ApplyUserMocks(this RemixGoContext context)
        {
            context.Users.AddRange(
                new User
            {
                Username = "******",
                Fullname = "fulano de sicrano",
                Email    = "*****@*****.**",
                Password = "******",
            },
                new User
            {
                Username = "******",
                Fullname = "beltrano de sicrano",
                Email    = "*****@*****.**",
                Password = "******"
            }
                );
            context.SaveChanges();

            return(context);
        }
示例#2
0
 public GenericRepository(RemixGoContext context)
 {
     Context = context;
 }