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); }
public UserServiceTest() { db = new FelBookDBEntities(); wallServ = new WallService(db); userService = new UserService(db, wallServ); }
public void UserServiceConstructorTest() { db = new FelBookDBEntities(); wallServ = new WallService(db); userService = new UserService(db, wallServ); Assert.IsNotNull(userService); }
public void GroupServiceConstructorTest() { FelBookDBEntities DBEntities = new FelBookDBEntities(); IWallService wallService = new WallService(DBEntities); GroupService target = new GroupService(DBEntities, wallService); Assert.IsNotNull(target); }