public async Task Given_An_Archetype_Id_Should_Invoke_ArchetypeById_Method_Once() { // Arrange const long archetypeId = 23424; // Act await _sut.ArchetypeById(archetypeId); // Assert await _archetypeRepository.Received(1).ArchetypeById(Arg.Is(archetypeId)); }
public async Task Should_Invoke_ArchetypeById_Method_Once() { // Arrange const int archetypeId = 2342; _archetypeRepository.ArchetypeById(Arg.Any <long>()).Returns(new ArchetypeByIdResult()); // Act await _sut.ArchetypeById(archetypeId); // Assert await _archetypeRepository.Received(1).ArchetypeById(Arg.Any <long>()); }