コード例 #1
0
 public IndexController(
     ICacherService cacherService,
     ITemplaterService templaterService,
     IGeneratorService generatorService
     )
 {
     _cacherService    = cacherService;
     _templaterService = templaterService;
     _generatorService = generatorService;
 }
コード例 #2
0
 public static Task <Stream> Populate <T>(this ITemplaterService templater, string file, Expression <Func <T, bool> > filter)
     where T : class, ISearchable
 {
     if (templater == null)
     {
         throw new ArgumentNullException("templater can't be null");
     }
     if (filter == null)
     {
         throw new ArgumentNullException("filter can't be null");
     }
     return(templater.Populate <T>(file, new ExpressionSpecification <T>(filter)));
 }
コード例 #3
0
ファイル: ReportingTests.cs プロジェクト: zhxjdwh/revenj
 public ReportingTests()
 {
     locator  = Common.StartClient();
     tService = locator.Resolve <ITemplaterService>();
     rProxy   = locator.Resolve <IReportingProxy>();
 }
コード例 #4
0
ファイル: ReportingTests.cs プロジェクト: ngs-doo/revenj
 public ReportingTests()
 {
     locator = Common.StartClient();
     tService = locator.Resolve<ITemplaterService>();
     rProxy = locator.Resolve<IReportingProxy>();
 }
コード例 #5
0
ファイル: RobotsController.cs プロジェクト: bettx/xtteb
 public RobotsController(ITemplaterService templaterService)
 {
     _templaterService = templaterService;
 }