public void ToDashboardInfosEmptyTest() { var target = new LaborDashboardHelper(new NLogLoggerFactory()); var infos = target.ToDashboardInfos(new List <TestValue>()); infos.Count.Should() .Be(0); }
public void ToDashboardInfosTest() { var target = new LaborDashboardHelper(new NLogLoggerFactory()); var infos = target.ToDashboardInfos( new List <TestValue> { new TestValue { ArticleTestType = ArticleType.BabyDiaper, TestValueType = TestValueType.Average, BabyDiaperTestValue = new BabyDiaperTestValue { TestType = TestTypeBabyDiaper.Rewet, Rewet140Rw = RwType.Better, Rewet140Value = 12.12345, Rewet210Value = 14.444, Rewet210Rw = RwType.Ok } }, new TestValue { ArticleTestType = ArticleType.IncontinencePad, TestValueType = TestValueType.Average, IncontinencePadTestValue = new IncontinencePadTestValue { TestType = TestTypeIncontinencePad.Retention, RetentionRw = RwType.Ok, RetentionEndValue = 12 } }, new TestValue { ArticleTestType = ArticleType.IncontinencePad, TestValueType = TestValueType.Single, IncontinencePadTestValue = new IncontinencePadTestValue { TestType = TestTypeIncontinencePad.Retention, RetentionRw = RwType.Ok, RetentionEndValue = 12 } }, new TestValue { ArticleTestType = ArticleType.IncontinencePad, TestValueType = TestValueType.StandardDeviation, IncontinencePadTestValue = new IncontinencePadTestValue { TestType = TestTypeIncontinencePad.Retention, RetentionRw = RwType.Ok, RetentionEndValue = 12 } } }); infos.Count.Should() .Be(3); }