public static Task <IHistory <TAggregate> > GetHistory <TAggregate>( this IReportingProxy proxy, string uri) where TAggregate : class, IAggregateRoot { if (proxy == null) { throw new ArgumentNullException("proxy can't be null"); } if (string.IsNullOrEmpty(uri)) { throw new ArgumentNullException("uri can't be null"); } return (proxy.GetHistory <TAggregate>(new[] { uri }) .ContinueWith(t => t.Result.FirstOrDefault())); }
public ReportingTests() { locator = Common.StartClient(); tService = locator.Resolve <ITemplaterService>(); rProxy = locator.Resolve <IReportingProxy>(); }
public ReportingTests() { locator = Common.StartClient(); tService = locator.Resolve<ITemplaterService>(); rProxy = locator.Resolve<IReportingProxy>(); }
public ClientTemplaterService(IReportingProxy proxy) { this.Proxy = proxy; }