コード例 #1
0
 public KanbanBoardModel(
     IKanbanConfigurationRepository kanbanRepository,
     IRedmineRepository redmineRepository)
 {
     this.kanbanRepository  = kanbanRepository;
     this.redmineRepository = redmineRepository;
 }
コード例 #2
0
 public RedmineController(IStringConstantRepository stringConstant, IRedmineRepository redmineRepository,
                          IAttachmentRepository attachmentRepository)
     : base(stringConstant)
 {
     _redmineRepository    = redmineRepository;
     _attachmentRepository = attachmentRepository;
 }
コード例 #3
0
 public RedmineRepositoryTest()
 {
     _componentContext  = AutofacConfig.RegisterDependancies();
     _stringConstant    = _componentContext.Resolve <IStringConstantRepository>();
     _redmineRepository = _componentContext.Resolve <IRedmineRepository>();
     _userManager       = _componentContext.Resolve <ApplicationUserManager>();
     _mockHttpClient    = _componentContext.Resolve <Mock <IHttpClientService> >();
     Initialize();
 }
コード例 #4
0
        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());
        }
コード例 #5
0
 public RedmineManager(IRedmineRepository redmineRepo, IRedmineApiIntegration redmineApiIntegration)
 {
     _redmineRepo           = redmineRepo;
     _redmineApiIntegration = redmineApiIntegration;
 }
コード例 #6
0
 public RedmineAuthenticationContext(IRedmineRepository redmineRepository)
 {
     RedmineRepository = redmineRepository;
 }
コード例 #7
0
 public IssueModel(IRedmineRepository redmineRepository)
 {
     RedmineRepository = redmineRepository;
 }