예제 #1
0
        /// <summary> <see cref="IDependentDomain.GetAsync()"/> </summary>
        public async Task <IList <DependentDomainModel> > GetAsync()
        {
            var models = await _repository.GetAsync().ConfigureAwait(false);

            IList <DependentDomainModel> domainModels = ToListModel <DependentDomainModel, Dependent>(models);

            return(domainModels);
        }
        public async void GetAsync_ReturnAll()
        {
            var defaultData = await BuildDefaultAsync();

            await _helper.AddAsync(defaultData).ConfigureAwait(false);

            try
            {
                var selected = await _repository.GetAsync().ConfigureAwait(false);

                selected.Should().NotBeNull();
                selected.Should().NotBeEmpty();
            }
            finally { await CleanAsync(defaultData).ConfigureAwait(false); }
        }