자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public void TestDeleteMany() { List <string> listTopicId = new List <string>(); listTopicId.Add("da8f7af6sffa5af67asf7"); listTopicId.Add("da8f7af6sffa5af67asf3"); mockTopicRepository.Setup(x => x.DeleteMany(listTopicId)).Returns(true); var topicService = new TopicService(mockTopicRepository.Object); bool isDeleted = topicService.DeleteMany(listTopicId); Assert.IsTrue(isDeleted); }