public void PerfilServiceTest_ObterPorId_RetornandoPerfilEspecifico() { var result = _service.ObterPorId(new Guid("059c1079-f007-4980-81d3-b5bfd548f621")); var item = result.Should().BeAssignableTo <Perfil>().Subject; item.Descricao.Should().Be("Acesso Total"); _repositoryMock.Verify(x => x.GetItemFromCollectionAsync(It.IsAny <string>()), Times.Once()); }