public async Task Should_Invoke_AllSubCategories_Method_Once() { // Arrange // Act await _sut.AllSubCategories(); // Assert await _subCategoryRepository.Received(1).AllSubCategories(); }
public async Task Should_Invoke_AllSubCategories_Once() { // Arrange _subCategoryRepository.AllSubCategories().Returns(new List <SubCategory>()); // Act await _sut.AllSubCategories(); // Assert await _subCategoryRepository.Received(1).AllSubCategories(); }