Exemple #1
0
        public async Task ThenTheCharityDetailsAreMappedToTheModel()
        {
            //Act
            var actual = await _orchestrator.GetCharityByRegistrationNumber(string.Empty, string.Empty, string.Empty);

            //Assert
            Assert.IsNotNull(actual);
            Assert.AreEqual(_expected.Charity.RegistrationNumber.ToString(), actual.Data.ReferenceNumber);
            Assert.AreEqual(_expected.Charity.Name, actual.Data.Name);
            Assert.AreEqual(_expected.Charity.FormattedAddress, actual.Data.Address);
        }
        private async Task <OrchestratorResponse <OrganisationDetailsViewModel> > FindCharity(string charityRegNo, string hashedAccountId, string userIdClaim)
        {
            var response = await _orchestrator.GetCharityByRegistrationNumber(charityRegNo, hashedAccountId, userIdClaim);

            return(response);
        }