public void ReadOnlyListFetchRemote()
        {
            var context = GetContext();

            ReadOnlyPersonList.Fetch((o, e) =>
            {
                context.Assert.IsNull(e.Error);
                context.Assert.IsNotNull(e.Object);
                context.Assert.AreEqual("John Doe", e.Object[0].Name);
                context.Assert.AreEqual(new DateTime(1982, 1, 1), e.Object[1].Birthdate);
                context.Assert.AreEqual(2, e.Object.Count);
                context.Assert.Success();
            });
            context.Complete();
        }
        public void ReadOnlyListFetchLocal()
        {
#if SILVERLIGHT
            Csla.DataPortal.ProxyTypeName = "Local";
#endif
            var context = GetContext();
            ReadOnlyPersonList.Fetch((o, e) =>
            {
                context.Assert.IsNull(e.Error);
                context.Assert.IsNotNull(e.Object);
                context.Assert.AreEqual("John Doe", e.Object[0].Name);
                context.Assert.AreEqual(new DateTime(1982, 1, 1), e.Object[1].Birthdate);
                context.Assert.AreEqual(2, e.Object.Count);
                context.Assert.Success();
            });
            context.Complete();
        }
    public void ReadOnlyListFetchRemote()
    {
#if SILVERLIGHT
      Csla.DataPortal.ProxyTypeName = typeof(SynchronizedWcfProxy).AssemblyQualifiedName;
      Csla.DataPortalClient.WcfProxy.DefaultUrl = cslalighttest.Properties.Resources.RemotePortalUrl;
#endif
      var context = GetContext();
      ReadOnlyPersonList.Fetch((o, e) =>
      {
        context.Assert.IsNull(e.Error);
        context.Assert.IsNotNull(e.Object);
        context.Assert.AreEqual("John Doe", e.Object[0].Name);
        context.Assert.AreEqual(new DateTime(1982, 1, 1), e.Object[1].Birthdate);
        context.Assert.AreEqual(2, e.Object.Count);
        context.Assert.Success();
      });
      context.Complete();
    }