public UpdateResourceSetActionFixture() { _resourceSetRepositoryStub = new Mock <IResourceSetRepository>(); _resourceSetRepositoryStub.Setup(x => x.Update(It.IsAny <ResourceSet>(), It.IsAny <CancellationToken>())) .ReturnsAsync(new Option.Success()); _updateResourceSetAction = new UpdateResourceSetAction(_resourceSetRepositoryStub.Object, new Mock <ILogger>().Object); }
/// <summary> /// Initializes a new instance of the <see cref="ResourceSetController"/> class. /// </summary> /// <param name="resourceSetRepository">The resource set repository.</param> /// <param name="logger">The logger</param> public ResourceSetController(IResourceSetRepository resourceSetRepository, ILogger <ResourceSetController> logger) { _resourceSetRepository = resourceSetRepository; _updateResourceSet = new UpdateResourceSetAction(resourceSetRepository, logger); }