public TopicVM(TopicService topicService, ProductRepository productRepository, EditableTopic topic, NotificationSender notificationSender) : this() { this.topicService = topicService; this.productRepository = productRepository; this.notificationSender = notificationSender; EditableTopic = topic; LastTopicSaved = topic.Clone(); }
public void SetUp() { topicRepo = Substitute.For<TopicCommandRepository>(); var productRepository = Substitute.For<ProductRepository>(); collisionDetector = Substitute.For<VersionRangeCollisionDetector>(productRepository); topicService = new TopicService(topicRepo, collisionDetector); anyVersionRange = new VersionRange(fromVersion: anyVersion, toVersion: anyVersion); anyProductId = "AnyProductId"; }
public void SetUp() { topicService = Substitute.For<TopicService>(null, null); productRepository = Substitute.For<ProductRepository>(); notificationSender = Substitute.For<NotificationSender>(); }