Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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";
 }
Exemplo n.º 3
0
 public void SetUp() {
     topicService = Substitute.For<TopicService>(null, null);
     productRepository = Substitute.For<ProductRepository>();
     notificationSender = Substitute.For<NotificationSender>();
 }