/// <summary> /// Initializes a new instance of the QuoteCollectionViewModel class. /// This constructor is declared protected to avoid undesired instantiation of the QuoteCollectionViewModel type without the POCO proxy factory. /// </summary> /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param> protected QuoteCollectionViewModel(IUnitOfWorkFactory <IDevAVDbUnitOfWork> unitOfWorkFactory = null, UnitOfWorkPolicy unitOfWorkPolicy = UnitOfWorkPolicy.Individual) : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Quotes, x => QueriesHelper.GetQuoteInfo(x)) { }