public void Account_Can_Serialize() { var acct = new Account(); var stringBuilder = new StringBuilder(); var writer = XmlWriter.Create(stringBuilder); var xmlSerializer = new XmlSerializer(typeof(Account)); xmlSerializer.Serialize(writer, acct); }
public DGAccount(Account source) { Source = source; User = DGUser.GetUser(source.User); m_visible = true; }