private void Adapter_DeploymentSummaryChanged(object sender, DeploymentSummaryEventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            foreach (DeploymentStatus ds in e.Summary.Keys)
            {
                sb.AppendFormat("{0} {1}", e.Summary[ds], ds.ToDisplayString());
                sb.AppendLine();
            }

            sb.Remove(sb.Length - 2, 2);

            StateSummary = sb.ToString();
        }
Ejemplo n.º 2
0
        public void GivenIHaveADashboardWith(int numberOfBuilds, DeploymentStatus status)
        {
            if (DeploymentSummaryEventArgs == null)
            {
                DeploymentSummaryEventArgs = new DeploymentSummaryEventArgs(new Dictionary <DeploymentStatus, int>
                {
                    { status, numberOfBuilds }
                });
            }
            else
            {
                Dictionary <DeploymentStatus, int> newDic = new Dictionary <DeploymentStatus, int>(DeploymentSummaryEventArgs.Summary as IDictionary <DeploymentStatus, int>);
                newDic.Add(status, numberOfBuilds);

                DeploymentSummaryEventArgs = new DeploymentSummaryEventArgs(newDic);
            }
        }
Ejemplo n.º 3
0
 private void OnDeploymentSummaryChanged(DeploymentSummaryEventArgs e)
 {
     DeploymentSummaryChanged?.Invoke(this, e);
 }
 private void Adapter_DeploymentSummaryChanged(object sender, DeploymentSummaryEventArgs e)
 {
     _args = e;
 }