public void ToDashboardInfosIncontinencePadRetentionTest() { var testvalue = new TestValue { ArticleTestType = ArticleType.IncontinencePad, IncontinencePadTestValue = new IncontinencePadTestValue { TestType = TestTypeIncontinencePad.Retention, RetentionRw = RwType.Ok, RetentionEndValue = 12 } }; var target = new LaborDashboardHelper(new NLogLoggerFactory()); var info = target.ToDashboardInfosIncontinencePad(testvalue); info.Count.Should() .Be(1); info.ToList()[0].RwType.Should() .Be(RwType.Ok); info.ToList()[0].InfoKey.Should() .Be("Retention"); info.ToList()[0].InfoValue.Should() .Be("12"); }
public void ToDashboardInfosIncontinencePadRewetTest() { var testvalue = new TestValue { ArticleTestType = ArticleType.IncontinencePad, IncontinencePadTestValue = new IncontinencePadTestValue { TestType = TestTypeIncontinencePad.RewetFree, RewetFreeRw = RwType.Better, RewetFreeDifference = 12.123 } }; var target = new LaborDashboardHelper(new NLogLoggerFactory()); var info = target.ToDashboardInfosIncontinencePad(testvalue); info.Count.Should() .Be(1); info.ToList()[0].RwType.Should() .Be(RwType.Better); info.ToList()[0].InfoKey.Should() .Be("Rewet"); info.ToList()[0].InfoValue.Should() .Be("12.12"); }
public void ToDashboardInfosIncontinencePadAcquisistionTimeTest() { var testvalue = new TestValue { ArticleTestType = ArticleType.IncontinencePad, IncontinencePadTestValue = new IncontinencePadTestValue { TestType = TestTypeIncontinencePad.AcquisitionTimeAndRewet, AcquisitionTimeFirst = 13.123, AcquisitionTimeFirstRw = RwType.Better, AcquisitionTimeSecond = 14.117, AcquisitionTimeSecondRw = RwType.Better, AcquisitionTimeThird = 15.118, AcquisitionTimeThirdRw = RwType.Better, RewetAfterAcquisitionTimeWeightDifference = 16.119, RewetAfterAcquisitionTimeRw = RwType.Better } }; var target = new LaborDashboardHelper(new NLogLoggerFactory()); var info = target.ToDashboardInfosIncontinencePad(testvalue); info.Count.Should() .Be(4); info.ToList()[0].RwType.Should() .Be(RwType.Better); info.ToList()[0].InfoKey.Should() .Be("Aquisitionszeit - Zugabe 1"); info.ToList()[0].InfoValue.Should() .Be("13.12"); info.ToList()[1].RwType.Should() .Be(RwType.Better); info.ToList()[1].InfoKey.Should() .Be("Aquisitionszeit - Zugabe 2"); info.ToList()[1].InfoValue.Should() .Be("14.12"); info.ToList()[2].RwType.Should() .Be(RwType.Better); info.ToList()[2].InfoKey.Should() .Be("Aquisitionszeit - Zugabe 3"); info.ToList()[2].InfoValue.Should() .Be("15.12"); info.ToList()[3].RwType.Should() .Be(RwType.Better); info.ToList()[3].InfoValue.Should() .Be("16.12"); info.ToList()[3].InfoKey.Should() .Be("Rewet nach Aquisition"); }