public void DeleteTest() { IProductUpdator productUpdator = MefBase.Resolve <IProductUpdator>(); IProductSelector productSelector = MefBase.Resolve <IProductSelector>(); Assert.IsTrue(productSelector.FindAll(true).Count == 15); productUpdator.Delete("5"); Assert.IsTrue(productSelector.FindAll(true).Count == 14); }
public void FindAllTest() { IProductSelector selector = MefBase.Resolve <IProductSelector>(); Assert.IsTrue(selector.FindAll(true).Count == 15, $"Actual {selector.FindAll(true).Count}"); }