public void ToDashboardInfosBabyDiapersRetentionTest() { var testvalue = new TestValue { ArticleTestType = ArticleType.BabyDiaper, BabyDiaperTestValue = new BabyDiaperTestValue { TestType = TestTypeBabyDiaper.Retention, RetentionRw = RwType.Worse, RetentionAfterZentrifugeValue = 12.0 } }; var target = new LaborDashboardHelper(new NLogLoggerFactory()); var info = target.ToDashboardInfosBabyDiapers(testvalue); info.Count.Should() .Be(1); info.ToList()[0].RwType.Should() .Be(RwType.Worse); info.ToList()[0].InfoValue.Should() .Be("12"); info.ToList()[0].InfoKey.Should() .Be("Retention - Nach Zentrifuge (g)"); }
public void ToDashboardInfosBabyDiapersRewetTest() { var testvalue = new TestValue { ArticleTestType = ArticleType.BabyDiaper, BabyDiaperTestValue = new BabyDiaperTestValue { TestType = TestTypeBabyDiaper.Rewet, Rewet140Rw = RwType.Better, Rewet140Value = 12.12345, Rewet210Value = 14.444, Rewet210Rw = RwType.Ok } }; var target = new LaborDashboardHelper(new NLogLoggerFactory()); var info = target.ToDashboardInfosBabyDiapers(testvalue); info.Count.Should() .Be(2); info.ToList()[0].RwType.Should() .Be(RwType.Better); info.ToList()[0].InfoValue.Should() .Be("12.12"); info.ToList()[0].InfoKey.Should() .Be("Rewet - 140 ml"); info.ToList()[1].RwType.Should() .Be(RwType.Ok); info.ToList()[1].InfoValue.Should() .Be("14.44"); info.ToList()[1].InfoKey.Should() .Be("Rewet - 210 ml"); }
public void ToDashboardInfosBabyDiapersPenetrationTimeTest() { var testvalue = new TestValue { ArticleTestType = ArticleType.BabyDiaper, BabyDiaperTestValue = new BabyDiaperTestValue { TestType = TestTypeBabyDiaper.RewetAndPenetrationTime, PenetrationTimeAdditionFourth = 1.88991, PenetrationRwType = RwType.SomethingWorse, Rewet140Rw = RwType.Better, Rewet140Value = 12.12345, Rewet210Value = 14.444, Rewet210Rw = RwType.Ok } }; var target = new LaborDashboardHelper(new NLogLoggerFactory()); var info = target.ToDashboardInfosBabyDiapers(testvalue); info.Count.Should() .Be(3); info.ToList()[2].RwType.Should() .Be(RwType.SomethingWorse); info.ToList()[2].InfoValue.Should() .Be("1.89"); info.ToList()[2].InfoKey.Should() .Be("Penetrationszeit - Zugabe 4"); info.ToList()[0].RwType.Should() .Be(RwType.Better); info.ToList()[0].InfoValue.Should() .Be("12.12"); info.ToList()[0].InfoKey.Should() .Be("Rewet - 140 ml"); info.ToList()[1].RwType.Should() .Be(RwType.Ok); info.ToList()[1].InfoValue.Should() .Be("14.44"); info.ToList()[1].InfoKey.Should() .Be("Rewet - 210 ml"); }