public SendRequestedFileCommandHandler(ILogger <SendRequestedFileCommandHandler> logger,
                                        IClassroomHubClient classroomHubClient, ILogicPathRepository logicPathRepository)
 {
     _logger              = logger;
     _classroomHubClient  = classroomHubClient;
     _logicPathRepository = logicPathRepository;
 }
Пример #2
0
        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);
        }
Пример #3
0
 public LogicAppFileEntryBuilder(ILogicPathRepository logicPathRepository,
                                 IGitIgnoreService gitIgnoreService)
 {
     _logicPathRepository = logicPathRepository;
     _gitIgnoreService    = gitIgnoreService;
 }
Пример #4
0
 public FileChangePipelineTransformChangeToLogicStep(ILogicPathRepository logicPathRepository,
                                                     IFileChangePipelinePublishChangesStep publishChangesStep)
 {
     _logicPathRepository = logicPathRepository;
     _publishChangesStep  = publishChangesStep;
 }