public async Task <IHttpActionResult> GetAccountUsers(string hashedAccountId)
        {
            var result = await _orchestrator.GetAccountTeamMembers(hashedAccountId);

            if (result.Data == null)
            {
                return(NotFound());
            }

            return(Ok(result.Data));
        }
コード例 #2
0
        public async Task TheARequestToGetAccountUsersShouldBeMade()
        {
            //Arrange
            const string hashedAgreementId = "ABC123";

            //Act
            await _orchestrator.GetAccountTeamMembers(hashedAgreementId);

            //Assert
            _mediator.VerifyAll();
        }
        public async Task <IHttpActionResult> GetAccountUsers(string hashedAccountId)
        {
            var result = await _orchestrator.GetAccountTeamMembers(hashedAccountId);

            return(Ok(result));
        }