public async Task SingleContactShouldReturnAllDetails()
        {
            var expected = await InsertContact(_solutionId1);

            var result = (await _marketingContactRepository.BySolutionIdAsync(_solutionId1, new CancellationToken())).ToList();

            result.Count.Should().Be(1);
            AssertEquivalent(expected, result.First());
        }
Esempio n. 2
0
 public async Task <IEnumerable <Contact> > ByIdAsync(string solutionId, CancellationToken cancellationToken) =>
 (await marketingContactRepository.BySolutionIdAsync(solutionId, cancellationToken)).Select(c => new Contact(c));