public void GetItemLabels_ShouldReturnNullIfItemIsNotFound() { // Arrange var dbContext = SetupDatabase(nameof(GetItemLabels_ShouldReturnNullIfItemIsNotFound)); var repository = new TodoItemRepository(dbContext); // Act var result = repository.GetItemLabels(1, 20); // Assert Assert.Null(result); }
public void GetItemLabels_ShouldGetItemLabels() { // Arrange var dbContext = SetupDatabase(nameof(GetItemLabels_ShouldGetItemLabels)); var repository = new TodoItemRepository(dbContext); // Act var result = repository.GetItemLabels(1, 1); // Assert Assert.NotNull(result); Assert.Equal("Today", result[0].Name); }