public async Task Should_Invoke_AllFormats_Once() { // Arrange _formatRepository.AllFormats().Returns(new List <Format>()); // Act await _sut.AllFormats(); // Assert await _formatRepository.Received(1).AllFormats(); }
public Task <IList <Format> > AllFormats() { return(_formatRepository.AllFormats()); }