Inheritance: IWallService
示例#1
0
        public void Init()
        {
            db.ExecuteStoreCommand("DELETE FROM WallItemSet");

            service = new WallService(db);

            user1 = new User {
                Username = "******" + db.UserSet.Count(),
                Mail = "*****@*****.**",
                Name = "John",
                Surname = "Doe",
            };
            user1.ChangePassword("123456");
            db.UserSet.AddObject(user1);

            status1 = new Status {
                User = user1,
                Text = "Status",
                Created = DateTime.Now,
            };
            db.StatusSet.AddObject(status1);
        }
示例#2
0
 public UserServiceTest()
 {
     db = new FelBookDBEntities();
     wallServ = new WallService(db);
     userService = new UserService(db, wallServ);
 }
示例#3
0
 public void UserServiceConstructorTest()
 {
     db = new FelBookDBEntities();
     wallServ = new WallService(db);
     userService = new UserService(db, wallServ);
     Assert.IsNotNull(userService);
 }
示例#4
0
 public void GroupServiceConstructorTest()
 {
     FelBookDBEntities DBEntities = new FelBookDBEntities();
     IWallService wallService = new WallService(DBEntities);
     GroupService target = new GroupService(DBEntities, wallService);
     Assert.IsNotNull(target);
 }