cleaned up refresh series a bit.

This commit is contained in:
Keivan Beigi 2013-07-31 19:02:36 -07:00
parent cf6512bc57
commit 4e7468e6fe
14 changed files with 190 additions and 135 deletions

View file

@ -0,0 +1,13 @@
using Newtonsoft.Json;
namespace NzbDrone.Test.Common
{
public static class ObjectExtentions
{
public static T JsonClone<T>(this T source)
{
var json = JsonConvert.SerializeObject(source);
return JsonConvert.DeserializeObject<T>(json);
}
}
}