public void ReturnInstanceOfTypeListIfCorrectUserIsProvided_When_Executed() { //Act var foundPosts = postServices.GetAllDeactivatedPosts(1); //Assert Assert.IsInstanceOfType(foundPosts, typeof(List <PostModel>)); }
public string Execute(IList <string> parameters) { var userID = userService.GetLoggedUserId(); var postsToShow = postService.GetAllDeactivatedPosts(userID); return(postService.PrintPostsToConsole(postsToShow)); }