Пример #1
0
        public async Task GetItemById_ExistingIdPassed_ReturnNotNull()
        {
            // Arrange
            int familyId = 1;

            _repositoryMock
            .Setup(rep => rep.GetByIdAsync(familyId))
            .ReturnsAsync(TestData.GetFamilyById(familyId));

            // Act
            var family = await _familyService.GetItemByIdAsync(familyId);

            // Assert
            Assert.NotNull(family);
        }