public void ListData_ValidData_NoEx() { using (var trans = TransHelper.NewScope()) { // arrange var item1 = ParameterNoDataFactory(); _parameterNoDal.Insert(item1); var item2 = ParameterNo2DataFactory(); _parameterNoDal.Insert(item2); var expected = new List <ParameterNoModel> { item1, item2 }; // act var actual = _parameterNoDal.ListData(); // assert actual.Should().BeEquivalentTo(expected); } }
public IEnumerable <ParameterNoModel> ListData() { return(_parameterNoDal.ListData()); }