public void Delete(SourceTypeDataCriteria criteria)
        {
            var data = MockDb.SourceTypes
                       .Where(row => row.SourceTypeId == criteria.SourceTypeId)
                       .Single();

            MockDb.SourceTypes.Remove(data);
        }
        public void Delete(SourceTypeDataCriteria criteria)
        {
            var data = MockDb.SourceTypes
                .Where(row => row.SourceTypeId == criteria.SourceTypeId)
                .Single();

            MockDb.SourceTypes.Remove(data);
        }
        public SourceTypeData Fetch(SourceTypeDataCriteria criteria)
        {
            var data = MockDb.SourceTypes
                       .Where(row => row.SourceTypeId == criteria.SourceTypeId)
                       .Single();

            data = this.Fetch(data);

            return(data);
        }
        public SourceTypeData Fetch(SourceTypeDataCriteria criteria)
        {
            var data = MockDb.SourceTypes
                .Where(row => row.SourceTypeId == criteria.SourceTypeId)
                .Single();

            data = this.Fetch(data);

            return data;
        }
        public SourceTypeData[] FetchInfoList(SourceTypeDataCriteria criteria)
        {
            var query = MockDb.SourceTypes
                        .AsQueryable();

            var sourceTypes = query.AsQueryable();

            var data = new List <SourceTypeData>();

            foreach (var sourceType in sourceTypes)
            {
                data.Add(this.Fetch(sourceType));
            }

            return(data.ToArray());
        }
        public SourceTypeData[] FetchInfoList(SourceTypeDataCriteria criteria)
        {
            var query = MockDb.SourceTypes
                .AsQueryable();

            var sourceTypes = query.AsQueryable();

            var data = new List<SourceTypeData>();

            foreach (var sourceType in sourceTypes)
            {
                data.Add(this.Fetch(sourceType));
            }

            return data.ToArray();
        }