public async Task Should_Invoke_AllSubCategories_Method_Once()
        {
            // Arrange
            // Act
            await _sut.AllSubCategories();

            // Assert
            await _subCategoryRepository.Received(1).AllSubCategories();
        }
Beispiel #2
0
        public async Task Should_Invoke_AllSubCategories_Once()
        {
            // Arrange
            _subCategoryRepository.AllSubCategories().Returns(new List <SubCategory>());

            // Act
            await _sut.AllSubCategories();

            // Assert
            await _subCategoryRepository.Received(1).AllSubCategories();
        }