Esempio n. 1
0
        private SourceResponse <T> ToSourceResponse <T>(IApiCallDetails apiCallDetails, Stream stream) where T : class
        {
            var source = SourceSerializer.Deserialize <T>(stream);

            return(new SourceResponse <T>
            {
                Body = source,
            });
        }
        public void TestDeserializeShouldDeserializeFilePath()
        {
            var result = (CsvFileSource)_serializer.Deserialize(_xSource);

            Assert.That(result.FilePath, Is.EqualTo(_source.FilePath));
        }