Пример #1
0
        public static SqlContext GetSqlContext()
        {
            var context = new SqlContext(DATABASE, SERVER, USER, PASSWORD);

            context.RegisterModelDescription(ModelDescriptions.User());
            context.RegisterModelDescription(ModelDescriptions.Group());
            context.RegisterModelDescription(ModelDescriptions.GroupUser());
            context.RegisterModelDescription(ModelDescriptions.Category());
            context.RegisterModelDescription(ModelDescriptions.BankAccount());

            return(context);
        }
 public void _Setup()
 {
     this.Context        = new SqlContext("moonstone_dev_tests", ".");
     this.UserRepository = new SqlUserRepository(this.Context);
     this.Context.RegisterModelDescription(ModelDescriptions.User());
 }