public void AddId_Values() { lookup.AddId(row, new TestModel { Id = "Test" }); KeyValuePair <String, String> actual = row.Single(); Assert.Equal(MvcLookup.IdKey, actual.Key); Assert.Equal("Test", actual.Value); }
public void AddId_EmptyValues() { TestLookup <NoIdModel> lookup = new TestLookup <NoIdModel>(); lookup.AddId(row, new NoIdModel()); KeyValuePair <String, String> actual = row.Single(); Assert.Equal(MvcLookup.IdKey, actual.Key); Assert.Null(actual.Value); }
public void AddId_EmptyValues() { TestLookup<NoIdModel> lookup = new TestLookup<NoIdModel>(); lookup.AddId(row, new NoIdModel()); KeyValuePair<String, String> actual = row.Single(); Assert.Equal(MvcLookup.IdKey, actual.Key); Assert.Null(actual.Value); }