コード例 #1
0
 public void SetUp() {
     topicRepo = Substitute.For<TopicQueryRepository>();
     productRepo = Substitute.For<ProductRepository>();
     websiteConstructor = Substitute.For<WebsiteConstructor>(topicRepo, productRepo);
     exporter = Substitute.For<MkDocsExporter>(new object[] {null});
 }
コード例 #2
0
 private async Task<TopicsGridVm> InitializeTopicGridVMWith(TopicQueryRepository topicRepo, ProductRepository productRepo, MkDocsExporter exporter, WebsiteConstructor constructor) {
     var viewModel = new TopicsGridVm(topicRepo, productRepo, exporter, constructor);
     await viewModel.Initialize();
     return viewModel;
 }
コード例 #3
0
ファイル: TopicsGridVM.cs プロジェクト: RonnyAnc/Papyrus
 public TopicsGridVm(TopicQueryRepository topicRepo, ProductRepository productRepo, MkDocsExporter exporter, WebsiteConstructor websiteConstructor)
     : this(topicRepo, productRepo) {
     this.exporter = exporter;
     this.websiteConstructor = websiteConstructor;
 }