public void EmptyModelListWhenFacilityIdNotPresent() { var mockModelComparisonReportRepository = new Mock <IModelComparisonReportRepository>(); var value = new ModelComparisonReport(); var result = new List <ModelComparisonReport> { new ModelComparisonReport() }; mockModelComparisonReportRepository.Setup(f => f.GetModels(It.IsAny <ModelComparisonReport>())).Returns(result); ModelComparisonReportLogic target = new ModelComparisonReportLogic(mockModelComparisonReportRepository.Object); List <ModelComparisonReport> actual = target.GetModels(value); Assert.AreEqual(result, actual); }
public List <ModelComparisonReport> GetModels(ModelComparisonReport modelComparisonForPost) { return(_modelComparisonReportLogic.GetModels(modelComparisonForPost)); }