public void GetBabyDiaperLaborCreatorViewModelTest() { var serviceHelperMoq = MockHelperBabyDiaperLaborCreatorServiceHelper.GetLaborCreatorServiceHelper(); const ShiftType shiftType = ShiftType.Late; const String faNr = "Fa666"; const String productName = "Beast"; const String sizeName = "Huge"; var createdDateTime = new DateTime(2016, 1, 1); var laborCreatorBllMoq = MockHelperBll.GetBabyDiaperLaborCreatorBll( new TestSheet { ShiftType = shiftType, FaNr = faNr, ProductName = productName, SizeName = sizeName, CreatedDateTime = createdDateTime, TestValues = new List <TestValue>(), TestSheetId = 1 }); var target = new BabyDiaperLaborCreatorService(new NLogLoggerFactory()) { Helper = serviceHelperMoq, BabyDiaperLaborCreatorBll = laborCreatorBllMoq }; var actual = target.GetLaborCreatorViewModel(1); actual.TestSheetId.Should() .Be(1); actual.Producer.Should() .Be("Intigena"); actual.Shift.Should() .Be(shiftType.ToFriendlyString()); actual.FaNr.Should() .Be(faNr); actual.ProductName.Should() .Be(productName); actual.SizeName.Should() .Be(sizeName); actual.CreatedDate.Should() .Be("01.01.2016"); actual.Rewets.Should() .NotBeNull("because it is initialized"); actual.BabyDiaperRewetAverage.Should() .NotBeNull("because it is initialized"); actual.BabyDiaperRewetStandardDeviation.Should() .NotBeNull("because it is initialized"); actual.Retentions.Should() .NotBeNull("because it is initialized"); actual.BabyDiaperRewetAverage.Should() .NotBeNull("because it is initialized"); actual.BabyDiaperRetentionStandardDeviation.Should() .NotBeNull("because it is initialized"); actual.PenetrationTimes.Should() .NotBeNull("because it is initialized"); actual.BabyDiaperPenetrationTimeAverage.Should() .NotBeNull("because it is initialized"); actual.BabyDiaperPenetrationTimeStandardDeviation.Should() .NotBeNull("because it is initialized"); }