public async Task HandleAsync_GivenOrganisationId_FetchActiveOrganisationUsersIsCalledWithId()
        {
            var request = new GetActiveOrganisationUsers(Guid.NewGuid());

            var result = await handler.HandleAsync(request);

            A.CallTo(() => dataAccess.FetchActiveOrganisationUsers(request.OrganisationId)).MustHaveHappened(Repeated.Exactly.Once);
        }
        public async Task <IEnumerable <OrganisationUserData> > HandleAsync(GetActiveOrganisationUsers message)
        {
            var result = new List <OrganisationUserData>();
            var users  = await dataAccess.FetchActiveOrganisationUsers(message.OrganisationId);

            foreach (var user in users)
            {
                result.Add(mapper.Map(user));
            }

            return(result);
        }