public void GetPerformanceType_ReturnsCorrectly(string dateStr, int referenceHour, string expected) { var date = TestHelper.ConvertTestArgumentToDateTime(dateStr); var result = PerformanceHelper.GetPerformanceType(date, referenceHour); Assert.AreEqual(expected, result); }
/// <summary> /// Returns the performance type (matinee or evening) based on a date in string format. /// </summary> /// <param name="dateTime">The performance time.</param> /// <param name="referenceHour">The hour value that divides the time of day.</param> /// <returns>Performance type in string format.</returns> public static string GetPerformanceType(this DateTimeOffset dateTime, int referenceHour) => PerformanceHelper.GetPerformanceType(dateTime.DateTime, referenceHour);