public KanbanBoardModel( IKanbanConfigurationRepository kanbanRepository, IRedmineRepository redmineRepository) { this.kanbanRepository = kanbanRepository; this.redmineRepository = redmineRepository; }
public RedmineController(IStringConstantRepository stringConstant, IRedmineRepository redmineRepository, IAttachmentRepository attachmentRepository) : base(stringConstant) { _redmineRepository = redmineRepository; _attachmentRepository = attachmentRepository; }
public RedmineRepositoryTest() { _componentContext = AutofacConfig.RegisterDependancies(); _stringConstant = _componentContext.Resolve <IStringConstantRepository>(); _redmineRepository = _componentContext.Resolve <IRedmineRepository>(); _userManager = _componentContext.Resolve <ApplicationUserManager>(); _mockHttpClient = _componentContext.Resolve <Mock <IHttpClientService> >(); Initialize(); }
public IssueViewModel( IIssueModel model, IRedmineRepository redmine) { Model = model; var mapConfig = new MapperConfiguration(cfg => { cfg.CreateMap <Issue, IssueViewModel>(); }); Mapper = mapConfig.CreateMapper(); SaveCommand = ReactiveCommand.CreateFromTask(async(x) => { try { var newIssue = new Issue { Subject = Subject, Description = Description, AssignedTo = AssignedTo, Project = Project, Status = Status, Tracker = Tracker, Priority = Priority, CustomFields = CustomFields }; var saved = await redmine.CreateOrUpdateIssueAsync(newIssue); } catch (Exception ex) { Trace.WriteLine(ex); } }); CancelCommand = ReactiveCommand.Create(() => Close()); }
public RedmineManager(IRedmineRepository redmineRepo, IRedmineApiIntegration redmineApiIntegration) { _redmineRepo = redmineRepo; _redmineApiIntegration = redmineApiIntegration; }
public RedmineAuthenticationContext(IRedmineRepository redmineRepository) { RedmineRepository = redmineRepository; }
public IssueModel(IRedmineRepository redmineRepository) { RedmineRepository = redmineRepository; }