Exemplo n.º 1
0
        public async Task <TestBundle> DeserializeAsync(Stream testFileStream)
        {
            using (var streamReader = new StreamReader(testFileStream.Rewind()))
            {
                var json = await streamReader.ReadToEndAsync();

                return(Transform.Visit(json).ToObject <TestBundle>(_jsonSerializer));
            }
        }