예제 #1
0
        public void IsInMergeBlacklistTest()
        {
            _ = _mergeBlacklistRepo.DeleteAll(ProjId).Result;
            var wordIds = new List <string> {
                "1", "2", "3"
            };
            var subWordIds = new List <string> {
                "3", "2"
            };

            Assert.IsFalse(_mergeService.IsInMergeBlacklist(ProjId, subWordIds).Result);
            _ = _mergeService.AddToMergeBlacklist(ProjId, UserId, wordIds).Result;
            Assert.IsTrue(_mergeService.IsInMergeBlacklist(ProjId, subWordIds).Result);
        }