public void ProductionCalculator_GetBonusCredit_ReturnsCreditWithBonus_Test()
        {
            var unitTime = TimeSpan.FromMinutes(5 * 100);

            Assert.AreEqual(13648.383, ProductionCalculator.GetBonusCredit(700, 26.4, 3.0, 5.0, unitTime));
        }
 /// <summary>
 /// Gets the credit measurement based the given work unit information and the unit completion time.
 /// </summary>
 /// <param name="protein"></param>
 /// <param name="unitTime">The overall unit completion time.</param>
 /// <returns>The credit for the work unit.</returns>
 public static double GetBonusCredit(this Protein protein, TimeSpan unitTime)
 {
     return(ProductionCalculator.GetBonusCredit(protein.Credit, protein.KFactor, protein.PreferredDays, protein.MaximumDays, unitTime));
 }
        public void ProductionCalculator_GetBonusCredit_ReturnsCreditWithNoBonusWhenUnitTimeIsZero_Test()
        {
            var unitTime = TimeSpan.Zero;

            Assert.AreEqual(700, ProductionCalculator.GetBonusCredit(700, 26.4, 3.0, 5.0, unitTime));
        }