public void SetupPasswordData( ) { _inMemoryTextResource = new InMemoryTextResource( ); _serializer = new PasswordSerializer( ); _passwordData = new XmlPasswordData( _serializer, _inMemoryTextResource ); _passwords = new[ ] { TestPasswords.Abcd, TestPasswords.Efgh }.ToList( ); }
public static string ToXml( this PasswordSerializer serializer, IEnumerable<PasswordDigestDocument> passwords ) { var store = new InMemoryTextResource( ); serializer.Save( passwords, store ); return store.Content; }
public static IEnumerable<PasswordDigestDocument> FromXml( this PasswordSerializer serializer, string xml ) { var store = new InMemoryTextResource { Content = xml }; return serializer.Load( store ); }
public void SetUpSerializer( ) { _serializer = new PasswordSerializer( ); _textResource = new InMemoryTextResource( ); }
public void SetUpSerializer( ) { _serializer = new PasswordSerializer( ); _textResource = new InMemoryTextResource( ); _passwords = new List<PasswordDigestDocument>( ); }