示例#1
0
 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()));
 }
示例#2
0
 public ReportingTests()
 {
     locator  = Common.StartClient();
     tService = locator.Resolve <ITemplaterService>();
     rProxy   = locator.Resolve <IReportingProxy>();
 }
示例#3
0
 public ReportingTests()
 {
     locator = Common.StartClient();
     tService = locator.Resolve<ITemplaterService>();
     rProxy = locator.Resolve<IReportingProxy>();
 }
示例#4
0
 public ClientTemplaterService(IReportingProxy proxy)
 {
     this.Proxy = proxy;
 }