public async Task Should_Invoke_AllTypes_Method_Once() { // Arrange // Act await _sut.AllTypes(); // Assert await _typeRepository.Received(1).AllTypes(); }
public async Task Should_Invoke_AllTypes_Once() { // Arrange _typeRepository.AllTypes().Returns(new List <Type>()); // Act await _sut.AllTypes(); // Assert await _typeRepository.Received(1).AllTypes(); }