示例#1
0
        public void MeasureImpactSuccess()
        {
            var result = QualityUtils.MeasureImpact(0.90m);

            result = QualityUtils.MeasureImpact(0.95m);

            result = QualityUtils.MeasureImpact(0.99m);

            result = QualityUtils.MeasureImpact(0.999m);
            //Assert.Equal<decimal>(90.43821m, result);
            Assert.Equal(950m, result);
        }
示例#2
0
 public GraphNode(string group, string key, int id, string avatar, string name,
                  decimal availability, decimal slo)
 {
     this.Id         = string.Format("{0}_{1}", key, id);
     this.Avatar     = avatar;
     this.Name       = name;
     this.Value      = availability;
     this.Group      = group;
     this.Slo        = slo;
     this.Importance = QualityUtils.MeasureImpact(slo);
     this.Budget     = availability - (decimal)slo;
 }