public SendRequestedFileCommandHandler(ILogger <SendRequestedFileCommandHandler> logger, IClassroomHubClient classroomHubClient, ILogicPathRepository logicPathRepository) { _logger = logger; _classroomHubClient = classroomHubClient; _logicPathRepository = logicPathRepository; }
protected override Task Given() { var mockPublishChangesStep = new Mock <IFileChangePipelinePublishChangesStep>(); mockPublishChangesStep.Setup(h => h.Execute(It.IsAny <List <AppFileEntryChange> >())) .Callback <List <AppFileEntryChange> >(r => _result = r.FirstOrDefault()); _logicPathRepository = GetService <ILogicPathRepository>(); _step = new FileChangePipelineTransformChangeToLogicStep(_logicPathRepository, mockPublishChangesStep.Object); var path = GetResourcesPath("FileChangePipelineConvertChangeToLogicStepTests", "demo.txt"); _fileSystemEntryChange = new FileSystemEntryChange(FileSystemEntryChangeType.Changed, "demo.txt", path); _fileSystemEntryChanges = new List <FileSystemEntryChange> { _fileSystemEntryChange }; return(Task.CompletedTask); }
public LogicAppFileEntryBuilder(ILogicPathRepository logicPathRepository, IGitIgnoreService gitIgnoreService) { _logicPathRepository = logicPathRepository; _gitIgnoreService = gitIgnoreService; }
public FileChangePipelineTransformChangeToLogicStep(ILogicPathRepository logicPathRepository, IFileChangePipelinePublishChangesStep publishChangesStep) { _logicPathRepository = logicPathRepository; _publishChangesStep = publishChangesStep; }