public void LmiSocBreakdownModelExtensionsWithFullDataIsSuccessful() { // Arrange var testData = new LmiSocBreakdownModel { Note = "a note", Measure = Constants.MeasureForIndustry, PredictedEmployment = new List <LmiSocBreakdownYearModel> { new LmiSocBreakdownYearModel { Year = DateTime.UtcNow.Year, Breakdown = new List <LmiSocBreakdownYearValueModel> { new LmiSocBreakdownYearValueModel { Code = 123, Note = "a note", Name = "a name", Employment = 123, }, }, }, }, }; // Act testData.SetMeasures(); // Assert Assert.Equal(testData.Measure, testData.PredictedEmployment.First().Breakdown.First().Measure); }
public void LmiSocBreakdownModelExtensionsWithNoPredictedEmploymentIsSuccessful() { // Arrange var testData = new LmiSocBreakdownModel { Note = "a note", Measure = Constants.MeasureForIndustry, PredictedEmployment = null, }; // Act testData.SetMeasures(); // Assert Assert.True(true); }
public void LmiSocBreakdownModelExtensionsWithNoBreakdownIsSuccessful() { // Arrange var testData = new LmiSocBreakdownModel { Note = "a note", Measure = Constants.MeasureForIndustry, PredictedEmployment = new List <LmiSocBreakdownYearModel> { new LmiSocBreakdownYearModel { Year = DateTime.UtcNow.Year, Breakdown = null, }, }, }; // Act testData.SetMeasures(); // Assert Assert.True(true); }