Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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>());
        }