public void GetPolicyById_NewTestPolicy_ReturnsTestId()
        {
            // Arrange

            // Create mock repo and insert a new policy
            IPolicyRepository fakeRepo = new MirrorPolicyRepository();
            var testPolicy             = new Policy {
                Id = Guid.NewGuid()
            };

            // Create interactor to test and insert the mock repository
            IGetPolicyInteractor interactor = new GetPolicyInteractor(fakeRepo);

            // Act

            // using testPolicy's Id, try to get the test policy
            var result = interactor.GetById(testPolicy.Id);

            // Assert

            // Since the test policy exists, the interactor should return it and it should be the same
            // as the testPolicy object
            result.Id.ShouldBe(testPolicy.Id);
        }
        public IEnumerable <PolicyWithClaimsDomainModel> GetByUserId(string userId)
        {
            var policyEntities = GetPolicyInteractor.GetByUserId(userId);

            return(policyEntities.Select(policyEntity => new PolicyWithClaimsDomainModel(policyEntity)).ToList());
        }