public void GetNullItem() { var blackListManager = new BlackListManager(); var result = blackListManager.GetItem(a => a == null); Assert.IsNull(result); }
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); }