public async Task GetAllAsync_WhenCalled_ReturnNotNull() { // Arrange _repositoryMock .Setup(rep => rep.GetAllAsync()) .ReturnsAsync(TestData.GetAllFamilies()); // Act var families = await _familyService.GetAllAsync(); // Assert Assert.NotNull(families); }