示例#1
0
 public WebsiteConstructor(TopicQueryRepository topicRepo, ProductRepository productRepo) {
     this.topicRepo = topicRepo;
     this.productRepo = productRepo;
 }
 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;
 }
 public void SetUp() {
     topicRepo = Substitute.For<TopicQueryRepository>();
     productRepo = Substitute.For<ProductRepository>();
     websiteConstructor = Substitute.For<WebsiteConstructor>(topicRepo, productRepo);
     exporter = Substitute.For<MkDocsExporter>(new object[] {null});
 }
示例#4
0
 public TopicsGridVm(TopicQueryRepository topicRepo, ProductRepository productRepo, MkDocsExporter exporter, WebsiteConstructor websiteConstructor)
     : this(topicRepo, productRepo) {
     this.exporter = exporter;
     this.websiteConstructor = websiteConstructor;
 }
示例#5
0
 public TopicsGridVm(TopicQueryRepository topicRepository, ProductRepository productRepository) : this()
 {
     this.topicRepository = topicRepository;
     this.productRepository = productRepository;
 }
示例#6
0
 public void SetUp() {
     topicRepo = Substitute.For<TopicQueryRepository>();
     productRepo = Substitute.For<ProductRepository>();
     websiteConstructor = new WebsiteConstructor(topicRepo, productRepo);
 }