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