Ejemplo n.º 1
0
        public void GetPageList()
        {
            var userBll = NinjectCommon.Resolve <IUserSubAccountBll>();
            var data    = userBll.GetPageList(1, new PageListQueryInfo <UserSubAccountPageListQuery>
            {
                PageSize  = 15,
                PageIndex = 1,
                Query     = new UserSubAccountPageListQuery
                {
                    ProvinceName = "北京市",
                    CityName     = "",
                    DistrictName = ""
                }
            });

            Assert.True(data.Info.Count > 0);
        }
Ejemplo n.º 2
0
        public void Add()
        {
            var user = new User()
            {
                Account         = "Test-1",
                Password        = "******",
                Name            = "Test",
                QQ              = "888888",
                Email           = "*****@*****.**",
                Mobile          = "13888888888",
                Salt            = "12345",
                ReferrerAccount = "Test"
            };

            var userDal = NinjectCommon.Resolve <IUserDal>();
            //var ret = userDal.Add(user);
            //Assert.True(ret);

            var userBll = NinjectCommon.Resolve <IUserBll>();

            userBll.Register(user);
        }