public ClientPersistableRepository( IDomainProxy domainProxy, IStandardProxy standardProxy) : base(domainProxy) { this.StandardProxy = standardProxy; }
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)); }
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)); }
public MainForm() { InitializeComponent(); provider = Client.Start("http://localhost:8999/", null); standardProxy = provider.Resolve <IStandardProxy>(); }
public StandardTests() { locator = Common.StartClient(); sProxy = locator.Resolve <IStandardProxy>(); }
public StandardTests() { locator = Common.StartClient(); sProxy = locator.Resolve<IStandardProxy>(); }