public ResourceLinkingServiceTests() { _resourceGraph = new Uri("https://pid.bayer.com/resource/2.0"); _draftResourceGraph = new Uri("https://pid.bayer.com/resource/2.0/Draft"); _linkHistoryGraph = new Uri("https://pid.bayer.com/resource/2.0/LinkHistory"); _consumerGroupGraph = new Uri("https://pid.bayer.com/consumergroup/1.0"); _resourceVersionList = new List <VersionOverviewCTO>(); _mockLogger = new Mock <ILogger <ResourceLinkingService> >(); _mockResourceRepo = new Mock <IResourceRepository>(); _mockMetadataService = new Mock <IMetadataService>(); _mockReindexingService = new Mock <IReindexingService>(); var lockFactory = new InMemoryLockFactory(); var configuration = new MapperConfiguration(cfg => cfg.AddProfile(new ResourceProfile())); var mapper = new Mapper(configuration); SetupMetadataService(); SetupResourceRepo(); _service = new ResourceLinkingService( _mockLogger.Object, _mockResourceRepo.Object, _mockReindexingService.Object, _mockMetadataService.Object ); _metadata = new MetadataBuilder().GenerateSampleResourceData().Build(); }
public InMemoryLockFactoryTests() { _lockFactory = new InMemoryLockFactory(); }