public void GetItemsByCode_Api()
        {
            IReferenceDataSource source;

            source = new ApiReferenceDataSource();
            Assert.AreEqual(2, source.GetItemsByCode("xyz").Count());
        }
        public void GetItems()
        {
            IReferenceDataSource source;

            source = new SqlReferenceDataSource();
            Assert.AreEqual(2, source.GetItems().Count());
            source = new XmlReferenceDataSource();
            Assert.AreEqual(2, source.GetItems().Count());
            source = new ApiReferenceDataSource();
            Assert.AreEqual(2, source.GetItems().Count());
        }
        public void GetReferenceDataItemsTest_API()
        {
            //-- Arrange
            IReferenceDataSource source;

            source = new ApiReferenceDataSource();

            //-- Act
            int actual = source.GetReferenceDataItems().Count();

            //-- Assert
            Assert.AreEqual(2, actual);
        }
        public void GetItemsByCodeApi()
        {
            var source = new ApiReferenceDataSource();

            Assert.AreEqual(1, source.GetItemsByCode("A").Count());
        }