public void SetUp() {
     topicRepo = Substitute.For<TopicQueryRepository>();
     productRepo = Substitute.For<ProductRepository>();
     websiteConstructor = Substitute.For<WebsiteConstructor>(topicRepo, productRepo);
     exporter = Substitute.For<MkDocsExporter>(new object[] {null});
 }
 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
 public TopicsGridVm(TopicQueryRepository topicRepo, ProductRepository productRepo, MkDocsExporter exporter, WebsiteConstructor websiteConstructor)
     : this(topicRepo, productRepo) {
     this.exporter = exporter;
     this.websiteConstructor = websiteConstructor;
 }