public ClientPersistableRepository(
     IDomainProxy domainProxy,
     IStandardProxy standardProxy)
     : base(domainProxy)
 {
     this.StandardProxy = standardProxy;
 }
Example #2
0
 public static Task Delete <TAggregate>(
     this IStandardProxy proxy,
     IEnumerable <TAggregate> aggregates)
     where TAggregate : class, IAggregateRoot
 {
     if (proxy == null)
     {
         throw new ArgumentNullException("proxy can't be null");
     }
     if (aggregates == null)
     {
         throw new ArgumentNullException("aggregates can't be null");
     }
     return(proxy.Persist(null, null, aggregates));
 }
Example #3
0
 public static Task Update <TAggregate>(
     this IStandardProxy proxy,
     IEnumerable <TAggregate> aggregates)
     where TAggregate : class, IAggregateRoot
 {
     if (proxy == null)
     {
         throw new ArgumentNullException("proxy can't be null");
     }
     if (aggregates == null)
     {
         throw new ArgumentNullException("aggregates can't be null");
     }
     return
         (proxy.Persist(
              null,
              aggregates.Select(a => new KeyValuePair <TAggregate, TAggregate>(null, a)),
              null));
 }
Example #4
0
 public MainForm()
 {
     InitializeComponent();
     provider      = Client.Start("http://localhost:8999/", null);
     standardProxy = provider.Resolve <IStandardProxy>();
 }
Example #5
0
 public StandardTests()
 {
     locator = Common.StartClient();
     sProxy  = locator.Resolve <IStandardProxy>();
 }
Example #6
0
 public StandardTests()
 {
     locator = Common.StartClient();
     sProxy = locator.Resolve<IStandardProxy>();
 }