示例#1
0
        public async Task Should_Invoke_AllFormats_Once()
        {
            // Arrange
            _formatRepository.AllFormats().Returns(new List <Format>());

            // Act
            await _sut.AllFormats();

            // Assert
            await _formatRepository.Received(1).AllFormats();
        }
示例#2
0
 public Task <IList <Format> > AllFormats()
 {
     return(_formatRepository.AllFormats());
 }