Index: Core/Common/src/Core.Common.Utils/Url.cs =================================================================== diff -u -ree0b95b2a1a34d8e81a21c8d05ef1354169af50c -r6413227c0e793756474d0e3fdb04541ff18b4efd --- Core/Common/src/Core.Common.Utils/Url.cs (.../Url.cs) (revision ee0b95b2a1a34d8e81a21c8d05ef1354169af50c) +++ Core/Common/src/Core.Common.Utils/Url.cs (.../Url.cs) (revision 6413227c0e793756474d0e3fdb04541ff18b4efd) @@ -1,70 +1,18 @@ -using System; -using System.Xml; -using System.Xml.Schema; -using System.Xml.Serialization; -using Core.Common.Utils.Aop; - namespace Core.Common.Utils { /// - /// Web link, url. + /// Web link (url). /// - [Entity(FireOnCollectionChange = false)] - public class Url : ICloneable, IXmlSerializable + public class Url { - private string path; - - private string name; - public Url(string name, string path) { - this.name = name; - this.path = path; + Name = name; + Path = path; } - public virtual string Path - { - get - { - return path; - } - set - { - path = value; - } - } + public string Path { get; set; } - public virtual string Name - { - get - { - return name; - } - set - { - name = value; - } - } - - public object Clone() - { - return new Url(name, path); - } - - public XmlSchema GetSchema() - { - throw new NotImplementedException(); - } - - public void ReadXml(XmlReader reader) - { - name = reader.GetAttribute("name"); - path = reader.GetAttribute("path"); - } - - public void WriteXml(XmlWriter writer) - { - throw new NotImplementedException(); - } + public string Name { get; set; } } } \ No newline at end of file Index: Core/Common/test/Core.Common.Base.Tests/Shell/Core/UrlTest.cs =================================================================== diff -u -r3debb2835679b29531ce363c17d5fde650cbdca3 -r6413227c0e793756474d0e3fdb04541ff18b4efd --- Core/Common/test/Core.Common.Base.Tests/Shell/Core/UrlTest.cs (.../UrlTest.cs) (revision 3debb2835679b29531ce363c17d5fde650cbdca3) +++ Core/Common/test/Core.Common.Base.Tests/Shell/Core/UrlTest.cs (.../UrlTest.cs) (revision 6413227c0e793756474d0e3fdb04541ff18b4efd) @@ -9,19 +9,10 @@ [Test] public void Initialization() { - Url url = new Url("Deltares", "http://www.deltares.com"); + var url = new Url("Deltares", "http://www.deltares.com"); Assert.AreEqual("Deltares", url.Name); Assert.AreEqual("http://www.deltares.com", url.Path); } - - [Test] - public void Cloning() - { - Url url = new Url("Deltares", "http://www.deltares.com"); - Url urlClone = (Url) url.Clone(); - Assert.AreEqual(urlClone.Name, url.Name); - Assert.AreEqual(urlClone.Path, url.Path); - } } } \ No newline at end of file Index: Core/Common/test/Core.Common.Utils.Tests/TextDocumentTest.cs =================================================================== diff -u -r9b0f0e0e061a17409b0ba973819d45c1d10aef4c -r6413227c0e793756474d0e3fdb04541ff18b4efd --- Core/Common/test/Core.Common.Utils.Tests/TextDocumentTest.cs (.../TextDocumentTest.cs) (revision 9b0f0e0e061a17409b0ba973819d45c1d10aef4c) +++ Core/Common/test/Core.Common.Utils.Tests/TextDocumentTest.cs (.../TextDocumentTest.cs) (revision 6413227c0e793756474d0e3fdb04541ff18b4efd) @@ -1,5 +1,4 @@ -using System.ComponentModel; -using NUnit.Framework; +using NUnit.Framework; namespace Core.Common.Utils.Tests {