예제 #1
0
        public void GetNullItem()
        {
            var blackListManager = new BlackListManager();

            var result = blackListManager.GetItem(a => a == null);

            Assert.IsNull(result);
        }
예제 #2
0
        public void GetActualItem()
        {
            var blackListManager = new BlackListManager();

            var item = new BlackListObject
            {
                ResourceName = "Test"
            };

            var resultID = blackListManager.AddItem(item);

            var result = blackListManager.GetItem(a => a.ResourceName == item.ResourceName);

            Assert.IsNotNull(result);
        }