public void IsUserLikedAnswer_Must_Return_False_If_User_Not_Liked_Given_Answer() { // Arrange var db = StaticMethods.GetDb(); var discussionsService = new DiscussionsService(db, this.mapper); var testUser = StaticMethods.GetTestUser(); var testQBM = GetTestQuestionBM(); //Act db.Users.Add(testUser); db.SaveChanges(); var addedQuestion = discussionsService.AddQuestion(testQBM, testUser); var content = "Test Answer"; var answer = discussionsService.AddAnswer(content, testUser, addedQuestion.Id); var result = discussionsService.IsUserLikedAnswer(answer.Id, testUser.UserName); //Assert Assert.True(!result); }