Exemplo n.º 1
0
        public void GetAllItemsByCode_Array()
        {
            var sources = new IReferenceDataSource[] { new SqlReferenceDataSource(),
                                                       new XmlReferenceDataSource(), new ApiReferenceDataSource() };
            var items = sources.GetAllItemsByCode("xyz");

            Assert.AreEqual(6, items.Count());
        }
Exemplo n.º 2
0
        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);
        }