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