Beispiel #1
0
        public async Task <IEnumerable <string> > GetUsersEmailsByOffice(int officeId)
        {
            var emails = await _officeMapService.GetEmailsByOfficeAsync(officeId);

            return(emails);
        }
        public async Task Should_Return_If_Get_Emails_By_Office_Returns_Incorrect_Emails()
        {
            var emails = await _officeMapService.GetEmailsByOfficeAsync(3);

            Assert.AreEqual(1, emails.Count());
        }