Example #1
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";
 }
Example #2
0
 public TopicService(TopicCommandRepository topicRepo, VersionRangeCollisionDetector collisionDetector)
 {
     this.collisionDetector = collisionDetector;
     TopicRepository = topicRepo;
 }