public void GetAllItemsByCode_Array() { var sources = new IReferenceDataSource[] { new SqlReferenceDataSource(), new XmlReferenceDataSource(), new ApiReferenceDataSource() }; var items = sources.GetAllItemsByCode("xyz"); Assert.AreEqual(6, items.Count()); }
public void GetAllItemsByCode_Array() { //-- Arrange IReferenceDataSource[] sources = new IReferenceDataSource[] { new ApiReferenceDataSource(), new SqlReferenceDataSource(), new XmlReferenceDataSource() }; //-- Act int actual = sources.GetAllItemsByCode("xyz").Count(); //-- Assert Assert.AreEqual(6, actual); }