private static TekReleaseWorkflowStateEntity Create(DateTime now, InfectiousPeriodType symptomatic, params TekEntity[] items) { return(new TekReleaseWorkflowStateEntity { BucketId = new byte[0], ConfirmationKey = new byte[0], AuthorisedByCaregiver = now.AddHours(1), Created = now, ValidUntil = now.AddDays(1), StartDateOfTekInclusion = now.AddDays(-1).Date, IsSymptomatic = symptomatic, Teks = items }); }
/// <summary> /// Returns if a dsos value returns to be infectious by infectious period type /// </summary> /// <param name="infectiousPeriodType">The infectious period type (A)Symptomic</param> /// <param name="dsos">The dsos value</param> /// <returns>True if infectiousness is possible, otherwise false</returns> public bool IsInfectious(InfectiousPeriodType infectiousPeriodType, int dsos) { return(_Values[infectiousPeriodType].Contains(dsos)); }