Пример #1
0
        public async void CanGetUserAddresses()
        {
            var users = await _administrationManager.All();

            Assert.True(users.Any(), "Failed to find users");
            foreach (var user in users)
            {
                var items = await _administrationManager.UserAddresses(user.Id);

                Assert.True(items != null, "Failed to find addresses");
            }
        }
        public async Task <IEnumerable <UserAddressDto> > UserAddresses(Guid id)
        {
            var items = await _administrationManager.UserAddresses(id);

            return(Mapper.Map <IEnumerable <UserAddress>, IEnumerable <UserAddressDto> >(items));
        }