public void TestInitialize() { var connector = new VisualStudioOnlineConnector(Configuration.VisualStudioOnlineAccountName, Configuration.VisualStudioOnlineUserName, Configuration.VisualStudioOnlinePassword); _repository = new VisualStudioOnlineApiRepository(connector); }
/// <summary> /// Initializes a new instance of the <see cref="AnalyticsController"/> class. /// </summary> /// <param name="workItemsRepository">The work items repository.</param> /// <param name="loggingService">The logging service.</param> /// <exception cref="System.ArgumentNullException"> /// workItemsRepository /// or /// loggingService /// </exception> public AnalyticsController( IWorkItemsRepository workItemsRepository, ILoggingService loggingService) { if (workItemsRepository == null) { throw new ArgumentNullException(nameof(workItemsRepository)); } if (loggingService == null) { throw new ArgumentNullException(nameof(loggingService)); } this.workItemsRepository = workItemsRepository; this.logger = loggingService.GetLogger <AnalyticsController>(); }
/// <summary> /// Initializes a new instance of the <see cref="WorkItemsController"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="workItemsRepository">The work items repository.</param> /// <param name="loggingService">The logging service.</param> /// <exception cref="System.ArgumentNullException"> /// context /// or /// workItemsRepository /// or /// customersRepository /// </exception> public WorkItemsController( ApplicationDbContext context, IWorkItemsRepository workItemsRepository, ILoggingService loggingService) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (workItemsRepository == null) { throw new ArgumentNullException(nameof(workItemsRepository)); } this.context = context; this.workItemsRepository = workItemsRepository; this.logger = loggingService?.GetLogger <WorkItemsController>(); }
public WorkItemsController(IWorkItemsRepository workItemsRepository) { _workItemsRepository = workItemsRepository; }
public WorkItemsController(IMapper mapper, IWorkItemsRepository workItemsRepository) { _mapper = mapper; _workItemsRepository = workItemsRepository; }
public ProjectController(IProjectRepository projectRepository, IWorkItemsRepository workItemsRepository) { _projectRepository = projectRepository; _workItemsRepository = workItemsRepository; }