private void CreateInitialAutoBookCollection() { var autobookConfigurations = _autoBookInstanceConfigurationRepository.GetAll(); _autoBooks.AddRange(_autoBookRepository.GetAll().Select(ab => { var autobookConfiguration = autobookConfigurations.FirstOrDefault(); return(new AutoBookStubItem { Id = ab.Id, Name = $"{nameof(AWSPAAutoBook.Name)}-{ab.Id}", Url = ab.Api, Provisioned = true, InstanceType = autobookConfiguration?.InstanceType, Version = _autoBookSettings.ApplicationVersion, StorageSizeGb = autobookConfiguration?.StorageSizeGb.ToString(CultureInfo.InvariantCulture), Status = AutoBookStatuses.Idle }); })); }
public IEnumerable <AutoBook> GetAll() => _autoBookRepository.GetAll();