Ejemplo n.º 1
0
        public ActionResult DeleteStatus(int Id, int groupId)
        {
            profileService.DeleteStatus(Id);
            string theUserId = User.Identity.GetUserId();
            var    model     = service.GetGroupById(groupId, theUserId);

            model.myId      = theUserId;
            model.myRatings = newsFeedService.GetRatingByUserId(User.Identity.GetUserId());

            return(View("Group", model));
        }
Ejemplo n.º 2
0
        public void DeleteStatusForCarlos()
        {
            //Arrange
            var numberOfStatuses = mockDb.userStatuses.Count();

            //Act
            service.DeleteStatus(3);
            var newNumberOfStatuses = mockDb.userStatuses.Count();

            //Assert
            Assert.AreNotEqual(numberOfStatuses, newNumberOfStatuses);
        }
Ejemplo n.º 3
0
        public ActionResult DeleteStatus(int Id)
        {
            service.DeleteStatus(Id);

            return(RedirectToAction("Index"));
        }