/// <summary> /// Initializes a new instance of the <see cref="AzureServiceBus"/> class. /// </summary> /// <param name="messageConverter">The message converter.</param> /// <param name="configuration">The configuration of planning poker for Azure platform.</param> public AzureServiceBus(IMessageConverter messageConverter, IAzurePlanningPokerConfiguration configuration) { if (messageConverter == null) { throw new ArgumentNullException("messageConverter"); } this.MessageConverter = messageConverter; this.Configuration = configuration ?? new AzurePlanningPokerConfigurationElement(); }
/// <summary> /// Initializes a new instance of the <see cref="AzurePlanningPokerController"/> class. /// </summary> /// <param name="dateTimeProvider">The date time provider to provide current date-time.</param> /// <param name="guidProvider">The GUID provider to provide new GUID objects.</param> /// <param name="deckProvider">The provider to get estimation cards deck.</param> /// <param name="configuration">The configuration of the planning poker.</param> /// <param name="repository">The Scrum teams repository.</param> /// <param name="taskProvider">The system tasks provider.</param> /// <param name="logger">Logger instance to log events.</param> public AzurePlanningPokerController( DateTimeProvider dateTimeProvider, GuidProvider guidProvider, DeckProvider deckProvider, IAzurePlanningPokerConfiguration configuration, IScrumTeamRepository repository, TaskProvider taskProvider, ILogger <PlanningPokerController> logger) : base(dateTimeProvider, guidProvider, deckProvider, configuration, repository, taskProvider, logger) { }
private static PlanningPokerAzureNode CreatePlanningPokerAzureNode( IAzurePlanningPoker planningPoker = null, IServiceBus serviceBus = null, IAzurePlanningPokerConfiguration configuration = null, ILogger <PlanningPokerAzureNode> logger = null) { if (logger == null) { logger = Mock.Of <ILogger <PlanningPokerAzureNode> >(); } return(new PlanningPokerAzureNode(planningPoker, serviceBus, configuration, logger)); }
private static AzurePlanningPokerController CreateAzurePlanningPokerController( DateTimeProvider dateTimeProvider = null, IAzurePlanningPokerConfiguration configuration = null, IScrumTeamRepository repository = null, ILogger <Controllers.PlanningPokerController> logger = null) { if (logger == null) { logger = Mock.Of <ILogger <Controllers.PlanningPokerController> >(); } return(new AzurePlanningPokerController(dateTimeProvider, configuration, repository, logger)); }
/// <summary> /// Initializes a new instance of the <see cref="PlanningPokerAzureNode"/> class. /// </summary> /// <param name="planningPoker">The planning poker teams controller instance.</param> /// <param name="serviceBus">The service bus used to send messages between nodes.</param> /// <param name="configuration">The configuration of planning poker for Azure platform.</param> /// <param name="scrumTeamSerializer">The serializer that provides serialization and desserialization of Scrum Team.</param> /// <param name="logger">Logger instance to log events.</param> public PlanningPokerAzureNode( IAzurePlanningPoker planningPoker, IServiceBus serviceBus, IAzurePlanningPokerConfiguration configuration, ScrumTeamSerializer scrumTeamSerializer, ILogger <PlanningPokerAzureNode> logger) { PlanningPoker = planningPoker ?? throw new ArgumentNullException(nameof(planningPoker)); ServiceBus = serviceBus ?? throw new ArgumentNullException(nameof(serviceBus)); Configuration = configuration ?? new AzurePlanningPokerConfiguration(); _scrumTeamSerializer = scrumTeamSerializer ?? new ScrumTeamSerializer(PlanningPoker.DateTimeProvider); _logger = logger; NodeId = Guid.NewGuid().ToString(); }
private static PlanningPokerAzureNode CreatePlanningPokerAzureNode( IAzurePlanningPoker planningPoker = null, IServiceBus serviceBus = null, IAzurePlanningPokerConfiguration configuration = null, ILogger <PlanningPokerAzureNode> logger = null, DateTimeProvider dateTimeProvider = null) { if (logger == null) { logger = Mock.Of <ILogger <PlanningPokerAzureNode> >(); } var serializer = new ScrumTeamSerializer(dateTimeProvider ?? new DateTimeProviderMock()); return(new PlanningPokerAzureNode(planningPoker, serviceBus, configuration, serializer, logger)); }
/// <summary> /// Initializes a new instance of the <see cref="AzureServiceBus"/> class. /// </summary> /// <param name="messageConverter">The message converter.</param> /// <param name="configuration">The configuration of planning poker for Azure platform.</param> /// <param name="logger">Logger instance to log events.</param> public AzureServiceBus(IMessageConverter messageConverter, IAzurePlanningPokerConfiguration configuration, ILogger <AzureServiceBus> logger) { MessageConverter = messageConverter ?? throw new ArgumentNullException(nameof(messageConverter)); Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _logger = logger; }
/// <summary> /// Initializes a new instance of the <see cref="PlanningPokerAzureNode"/> class. /// </summary> /// <param name="planningPoker">The planning poker teams controller instance.</param> /// <param name="serviceBus">The service bus used to send messages between nodes.</param> /// <param name="configuration">The configuration of planning poker for Azure platform.</param> public PlanningPokerAzureNode(IAzurePlanningPoker planningPoker, IServiceBus serviceBus, IAzurePlanningPokerConfiguration configuration) { if (planningPoker == null) { throw new ArgumentNullException("planningPoker"); } if (serviceBus == null) { throw new ArgumentNullException("serviceBus"); } this.PlanningPoker = planningPoker; this.ServiceBus = serviceBus; this.Configuration = configuration ?? new AzurePlanningPokerConfigurationElement(); this.NodeId = Guid.NewGuid().ToString(); }
/// <summary> /// Initializes a new instance of the <see cref="AzurePlanningPokerController"/> class. /// </summary> /// <param name="dateTimeProvider">The date time provider to provide current date-time.</param> /// <param name="configuration">The configuration of the planning poker.</param> /// <param name="repository">The Scrum teams repository.</param> public AzurePlanningPokerController(DateTimeProvider dateTimeProvider, IAzurePlanningPokerConfiguration configuration, IScrumTeamRepository repository) : base(dateTimeProvider, configuration, repository) { }
/// <summary> /// Initializes a new instance of the <see cref="PlanningPokerAzureNode"/> class. /// </summary> /// <param name="planningPoker">The planning poker teams controller instance.</param> /// <param name="serviceBus">The service bus used to send messages between nodes.</param> /// <param name="configuration">The configuration of planning poker for Azure platform.</param> /// <param name="logger">Logger instance to log events.</param> public PlanningPokerAzureNode(IAzurePlanningPoker planningPoker, IServiceBus serviceBus, IAzurePlanningPokerConfiguration configuration, ILogger <PlanningPokerAzureNode> logger) { PlanningPoker = planningPoker ?? throw new ArgumentNullException(nameof(planningPoker)); ServiceBus = serviceBus ?? throw new ArgumentNullException(nameof(serviceBus)); Configuration = configuration ?? new AzurePlanningPokerConfiguration(); _logger = logger; NodeId = Guid.NewGuid().ToString(); }