Пример #1
0
        public async Task <bool> CanImportAsync(IDictionary <string, TData> data, IDataAccessFacade <TData> access)
        {
            var csvs = data.Keys.Where(filename => Path.GetExtension(filename).Equals(".csv", StringComparison.OrdinalIgnoreCase)).ToArray();

            if (csvs.Any())
            {
                foreach (var csv in csvs)
                {
                    using (var stream = await Reader.OpenStreamProvider(await access.GetFileAsync(csv)))
                    {
                        int i = 3;
                        using (var reader = new StreamReader(stream))
                        {
                            //Goto line 3
                            string line = null;
                            while (i-- > 0)
                            {
                                line = await reader.ReadLineAsync();
                            }

                            ParseHeaderData(line);

                            if (Headers.Count == 12 && line.StartsWith(TABLE_HEADER_START))
                            {
                                return(true);
                            }
                        }
                    }
                }
            }

            return(false);
        }
Пример #2
0
 public void SetValidData()
 {
     dataAccessFacadeStub = new DataAccessFacadeStub();
     validName = "VF Jan";
     validNote = "8 Persons";
     validType = CustomerType.Bureau;
 }
Пример #3
0
 public void SetValidData()
 {
     dataAccessFacadeStub = new DataAccessFacadeStub();
     validName            = "VF Jan";
     validNote            = "8 Persons";
     validType            = CustomerType.Bureau;
 }
Пример #4
0
 internal Customer(CustomerType type, string note, string name, IDataAccessFacade dataAccessFacade)
 {
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _customerEntity = dataAccessFacade.CreateCustomer(type, note, name);
     initializeParty(_customerEntity);
 }
Пример #5
0
 public BookingController(PaymentController paymentController, CustomerController customerController)
 {
     dataAccessFacade = DataAccessFacade.GetInstance();
     bookingCollection = new BookingCollection(dataAccessFacade);
     this.paymentController = paymentController;
     this.customerController = customerController;
 }
 public PartimInformatieRepository(IDataAccessFacade db, IBamaflexRepository bamaflexRepository, IDocentRepository docentRepository)
 {
     _docentRepository   = docentRepository;
     _bamaflexRepository = bamaflexRepository;
     _db = db;
     _genericRepository = new GenericRepository <PartimInformation>(db.Context);
 }
Пример #7
0
 public StudentRepository(IDataAccessFacade db, IBamaflexRepository bamaflexRepository, IOpleidingRepository opleidingRepository)
 {
     _bamaflexRepository  = bamaflexRepository;
     _opleidingRepository = opleidingRepository;
     _db = db;
     _genericRepository = new GenericRepository <Student>(db.Context);
 }
Пример #8
0
 internal Customer(CustomerType type, string note, string name, IDataAccessFacade dataAccessFacade)
 {
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _customerEntity       = dataAccessFacade.CreateCustomer(type, note, name);
     initializeParty(_customerEntity);
 }
Пример #9
0
        internal Supplier(IDataAccessFacade dataAccessFacade, ISupplier supplierEntity)
        {
            this.dataAccessFacade = dataAccessFacade;
            _supplierEntity = supplierEntity;
            initializeParty(_supplierEntity);

            readPaymentRules();
        }
Пример #10
0
 /// <summary>
 /// For testing against a specified DataAccessFacade
 /// </summary>
 /// <param name="dataAccessFacade"></param>
 public BookingController(PaymentController paymentController, CustomerController customerController,
     IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     bookingCollection = new BookingCollection(dataAccessFacade);
     this.paymentController = paymentController;
     this.customerController = customerController;
 }
Пример #11
0
        internal Supplier(IDataAccessFacade dataAccessFacade, ISupplier supplierEntity)
        {
            this.dataAccessFacade = dataAccessFacade;
            _supplierEntity       = supplierEntity;
            initializeParty(_supplierEntity);

            readPaymentRules();
        }
Пример #12
0
 /// <summary>
 /// For testing against a specified DataAccessFacade
 /// </summary>
 /// <param name="dataAccessFacade"></param>
 public BookingController(PaymentController paymentController, CustomerController customerController,
                          IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade   = dataAccessFacade;
     bookingCollection       = new BookingCollection(dataAccessFacade);
     this.paymentController  = paymentController;
     this.customerController = customerController;
 }
Пример #13
0
        internal Booking(IBooking bookingEntity, IDataAccessFacade dataAccessFacade)
        {
            this.dataAccessFacade = dataAccessFacade;
            _bookingEntity        = bookingEntity;

            // Create Models of supplier and customer
            _supplier = new Supplier(dataAccessFacade, _bookingEntity.Supplier);
            _customer = new Customer(_bookingEntity.Customer, dataAccessFacade);
        }
Пример #14
0
        internal Booking(IBooking bookingEntity, IDataAccessFacade dataAccessFacade)
        {
            this.dataAccessFacade = dataAccessFacade;
            _bookingEntity = bookingEntity;

            // Create Models of supplier and customer
            _supplier = new Supplier(dataAccessFacade, _bookingEntity.Supplier);
            _customer = new Customer(_bookingEntity.Customer, dataAccessFacade);
        }
Пример #15
0
        internal PaymentRule(IPaymentRule paymentRuleEntity, Supplier supplier, IDataAccessFacade dataAccessFacade)
        {
            this.dataAccessFacade = dataAccessFacade;
            this._paymentRuleEntity = paymentRuleEntity;

            // Get/Create Models of supplier and customer
            Supplier = supplier;
            Customer = new Customer(_paymentRuleEntity.Customer, dataAccessFacade);
        }
Пример #16
0
 internal Supplier(string name, string note, SupplierType type, IDataAccessFacade dataAccessFacade)
 {
     //Calls validation on "name" for securing right input.
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _supplierEntity = dataAccessFacade.CreateSupplier(name, note, type);
     //Calls party class to put supplierentity as a party.
     initializeParty(_supplierEntity);
 }
Пример #17
0
        internal PaymentRule(IPaymentRule paymentRuleEntity, Supplier supplier, IDataAccessFacade dataAccessFacade)
        {
            this.dataAccessFacade   = dataAccessFacade;
            this._paymentRuleEntity = paymentRuleEntity;

            // Get/Create Models of supplier and customer
            Supplier = supplier;
            Customer = new Customer(_paymentRuleEntity.Customer, dataAccessFacade);
        }
Пример #18
0
 internal Supplier(string name, string note, SupplierType type, IDataAccessFacade dataAccessFacade)
 {
     //Calls validation on "name" for securing right input.
     validateName(name);
     this.dataAccessFacade = dataAccessFacade;
     _supplierEntity       = dataAccessFacade.CreateSupplier(name, note, type);
     //Calls party class to put supplierentity as a party.
     initializeParty(_supplierEntity);
 }
Пример #19
0
 public void SetValidData()
 {
     dataAccessFacadeStub = new DataAccessFacadeStub();
     validDueDate         = new DateTime(2010, 10, 10);
     validDueAmount       = 1m;
     validPayer           = new Customer(CustomerType.Bureau, "", "Lonely Tree", dataAccessFacadeStub);
     validPayee           = new Supplier("Galasam", "", SupplierType.Cruise, dataAccessFacadeStub);
     validType            = PaymentType.Balance;
     validSale            = "VF Jan";
     validBooking         = 2;
 }
Пример #20
0
 public void SetValidData()
 {
     dataAccessFacadeStub = new DataAccessFacadeStub();
     validDueDate = new DateTime(2010, 10, 10);
     validDueAmount = 1m;
     validPayer = new Customer(CustomerType.Bureau, "", "Lonely Tree", dataAccessFacadeStub);
     validPayee = new Supplier("Galasam", "", SupplierType.Cruise, dataAccessFacadeStub);
     validType = PaymentType.Balance;
     validSale = "VF Jan";
     validBooking = 2;
 }
Пример #21
0
        //Reads all entities of customer there is in the DataAccessFacade.
        //Returns them to a list here.
        internal static List <Customer> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            List <ICustomer> customerEntities = dataAccessFacade.ReadAllCustomers();
            List <Customer>  customers        = new List <Customer>();

            foreach (ICustomer customerEntity in customerEntities)
            {
                Customer customer = new Customer(customerEntity, dataAccessFacade);
                customers.Add(customer);
            }
            return(customers);
        }
Пример #22
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GestureLogic"/> class.
        /// Initialize the attributes, and check if exists the discrete and continuous modals.
        /// </summary>
        public GestureLogic()
        {
            _dataAccessFacade = new DataAccessFacade();
            _discreteGestures = new List <Tuple <Person, string> >();
            _processedDiscreteGestureNames   = new List <string>();
            _processedContinuousGestureNames = new List <string>();

            _dataAccessFacade.GetModalAccess().AddIfNotExists("Discrete Posture",
                                                              "Evaluates every moment and return true or false");
            _dataAccessFacade.GetModalAccess().AddIfNotExists("Continuous Posture",
                                                              "Evaluates every moment and return a number associated to the progress");
        }
Пример #23
0
        public void Initialize()
        {
            culture = new CultureInfo("en-US"); // Used for comparing decimals with strings

            dataAccessFacade   = new DataAccessFacadeStub();
            customerController = new CustomerController(dataAccessFacade);
            supplierController = new SupplierController(dataAccessFacade);
            paymentController  = new PaymentController(dataAccessFacade);
            bookingController  = new BookingController(paymentController, customerController, dataAccessFacade);

            ICustomer lonelyTree = customerController.CreateCustomer(CustomerType.Bureau, "", "Lonely Tree");
        }
Пример #24
0
        public void Initialize()
        {
            culture = new CultureInfo("en-US"); // Used for comparing decimals with strings

            dataAccessFacade = new DataAccessFacadeStub();
            customerController = new CustomerController(dataAccessFacade);
            supplierController = new SupplierController(dataAccessFacade);
            paymentController = new PaymentController(dataAccessFacade);
            bookingController = new BookingController(paymentController, customerController, dataAccessFacade);

            ICustomer lonelyTree = customerController.CreateCustomer(CustomerType.Bureau, "", "Lonely Tree");
        }
Пример #25
0
        internal static List <Supplier> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            //Takes all the objects that read and changes them to a supplier from an entity.
            List <ISupplier> supplierEntities = dataAccessFacade.ReadAllSuppliers();
            List <Supplier>  suppliers        = new List <Supplier>();

            foreach (ISupplier supplierEntity in supplierEntities)
            {
                Supplier supplier = new Supplier(dataAccessFacade, supplierEntity);
                suppliers.Add(supplier);
            }
            return(suppliers);
        }
Пример #26
0
        /// <summary>
        /// Reads all ArtistEntities from the persistence subsystem and creates a new Artist
        /// representation for each entity
        /// </summary>
        /// <param name="dataAccessFacade">Facade to persistence subsystem</param>
        /// <returns>A list of all Artists stored in the persistence subsystem</returns>
        internal static List <Artist> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            List <Artist>  artists  = new List <Artist>();
            List <IArtist> entities = dataAccessFacade.ReadAllArtists();

            foreach (IArtist entity in entities)
            {
                Artist artist = new Artist(entity, dataAccessFacade);
                artists.Add(artist);
            }

            return(artists);
        }
Пример #27
0
        internal static List <Booking> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            //Calls readall bookings and adds them to a list
            List <IBooking> bookingEntities = dataAccessFacade.ReadAllBookings();
            List <Booking>  bookings        = new List <Booking>();

            foreach (IBooking bookingEntity in bookingEntities)
            {
                Booking booking = new Booking(bookingEntity, dataAccessFacade);
                bookings.Add(booking);
            }
            return(bookings);
        }
Пример #28
0
        //Returns a list of all payments created, with dataAccessFacade as parameter to access ReadAllPayments
        //through dataAccessFacade, to get a list of paymentEntities.
        internal static List <Payment> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            List <IPayment> paymentEntities = dataAccessFacade.ReadAllPayments();
            List <Payment>  payments        = new List <Payment>();

            //foreach converts each paymentEntity from paymentEntities to a payment, and adds it to a list of payments.
            foreach (IPayment paymentEntity in paymentEntities)
            {
                Payment payment = new Payment(paymentEntity, dataAccessFacade);
                payments.Add(payment);
            }
            return(payments);
        }
Пример #29
0
        internal PaymentRule(Supplier supplier, Customer customer, BookingType bookingType, decimal percentage, 
            int daysOffset, BaseDate baseDate, PaymentType paymentType, IDataAccessFacade dataAccessFacade)
        {
            // validate
            validateCustomer(customer);
            validateSupplier(supplier);

            // Get entities for DataAccess
            ISupplier supplierEntity = supplier._supplierEntity;
            ICustomer customerEntity = customer._customerEntity;

            this.dataAccessFacade = dataAccessFacade;
            _paymentRuleEntity = dataAccessFacade.CreatePaymentRule(supplierEntity, customerEntity, bookingType,
                percentage, daysOffset, baseDate, paymentType);
        }
Пример #30
0
        internal Payment(IPayment paymentEntity, IDataAccessFacade dataAccessFacade)
        {
            this.dataAccessFacade = dataAccessFacade;
            this._paymentEntity = paymentEntity;

            // Create Models of payer and payee
            if (_paymentEntity.Payer is ISupplier)
            {
                _payer = new Supplier(dataAccessFacade, (ISupplier)_paymentEntity.Payer);
                _payee = new Customer((ICustomer)_paymentEntity.Payee, dataAccessFacade);
            }
            else if (_paymentEntity.Payer is ICustomer)
            {
                _payer = new Customer((ICustomer)_paymentEntity.Payer, dataAccessFacade);
                _payee = new Supplier(dataAccessFacade, (ISupplier)_paymentEntity.Payee);
            }
        }
Пример #31
0
        internal Booking(Supplier supplier, Customer customer, string sale, int bookingNumber, DateTime startDate, 
            DateTime endDate, IDataAccessFacade dataAccessFacade)
        {
            validateSale(sale);
            validateEndDate(startDate, endDate);

            // Get entities for DataAccess
            ISupplier supplierEntity = supplier._supplierEntity;
            ICustomer customerEntity = customer._customerEntity;

            this.dataAccessFacade = dataAccessFacade;
            _bookingEntity = dataAccessFacade.CreateBooking(supplierEntity, customerEntity, sale, bookingNumber,
                startDate, endDate);

            _supplier = supplier;
            _customer = customer;
        }
Пример #32
0
        internal Booking(Supplier supplier, Customer customer, string sale, int bookingNumber, DateTime startDate,
                         DateTime endDate, IDataAccessFacade dataAccessFacade)
        {
            validateSale(sale);
            validateEndDate(startDate, endDate);

            // Get entities for DataAccess
            ISupplier supplierEntity = supplier._supplierEntity;
            ICustomer customerEntity = customer._customerEntity;

            this.dataAccessFacade = dataAccessFacade;
            _bookingEntity        = dataAccessFacade.CreateBooking(supplierEntity, customerEntity, sale, bookingNumber,
                                                                   startDate, endDate);

            _supplier = supplier;
            _customer = customer;
        }
Пример #33
0
        internal Payment(IPayment paymentEntity, IDataAccessFacade dataAccessFacade)
        {
            this.dataAccessFacade = dataAccessFacade;
            this._paymentEntity   = paymentEntity;

            // Create Models of payer and payee
            if (_paymentEntity.Payer is ISupplier)
            {
                _payer = new Supplier(dataAccessFacade, (ISupplier)_paymentEntity.Payer);
                _payee = new Customer((ICustomer)_paymentEntity.Payee, dataAccessFacade);
            }
            else if (_paymentEntity.Payer is ICustomer)
            {
                _payer = new Customer((ICustomer)_paymentEntity.Payer, dataAccessFacade);
                _payee = new Supplier(dataAccessFacade, (ISupplier)_paymentEntity.Payee);
            }
        }
Пример #34
0
        internal Payment(DateTime dueDate, decimal dueAmount, IParty payer,
            IParty payee, PaymentType type, string sale, int booking,
            IDataAccessFacade dataAccessFacade)
        {
            validateDueAmount(dueAmount);
            validateParty(payer);
            validateParty(payee);
            validateSale(sale);

            // Get entities for DataAccess
            IParty payerEntity = ((AParty)payer)._partyEntity;
            IParty payeeEntity = ((AParty)payee)._partyEntity;

            this.dataAccessFacade = dataAccessFacade;
            _paymentEntity = dataAccessFacade.CreatePayment(dueDate, dueAmount, payerEntity,
                payeeEntity, type, sale, booking);

            Payer = payer;
            Payee = payee;
        }
Пример #35
0
        internal Payment(DateTime dueDate, decimal dueAmount, IParty payer,
                         IParty payee, PaymentType type, string sale, int booking,
                         IDataAccessFacade dataAccessFacade)
        {
            validateDueAmount(dueAmount);
            validateParty(payer);
            validateParty(payee);
            validateSale(sale);

            // Get entities for DataAccess
            IParty payerEntity = ((AParty)payer)._partyEntity;
            IParty payeeEntity = ((AParty)payee)._partyEntity;

            this.dataAccessFacade = dataAccessFacade;
            _paymentEntity        = dataAccessFacade.CreatePayment(dueDate, dueAmount, payerEntity,
                                                                   payeeEntity, type, sale, booking);

            Payer = payer;
            Payee = payee;
        }
Пример #36
0
 /// <summary>
 /// For testing against a specified DataAccessFacade
 /// </summary>
 /// <param name="dataAccessFacade"></param>
 public SupplierController(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     supplierCollection = new SupplierCollection(dataAccessFacade);
 }
Пример #37
0
 public SupplierController()
 {
     dataAccessFacade = DataAccessFacade.GetInstance();
     supplierCollection = new SupplierCollection(dataAccessFacade);
 }
Пример #38
0
 //Construtor calls readall on for the new instance of dataaccessfacade.
 internal PaymentCollection(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     ReadAll();
 }
Пример #39
0
        //Reads all entities of customer there is in the DataAccessFacade.
        //Returns them to a list here.
        internal static List<Customer> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            List<ICustomer> customerEntities = dataAccessFacade.ReadAllCustomers();
            List<Customer> customers = new List<Customer>();

            foreach (ICustomer customerEntity in customerEntities)
            {
                Customer customer = new Customer(customerEntity, dataAccessFacade);
                customers.Add(customer);
            }
            return customers;
        }
Пример #40
0
        internal static List<Supplier> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            //Takes all the objects that read and changes them to a supplier from an entity.
            List<ISupplier> supplierEntities = dataAccessFacade.ReadAllSuppliers();
            List<Supplier> suppliers = new List<Supplier>();

            foreach (ISupplier supplierEntity in supplierEntities)
            {
                Supplier supplier = new Supplier(dataAccessFacade, supplierEntity);
                suppliers.Add(supplier);
            }
            return suppliers;
        }
Пример #41
0
        internal static List<Booking> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            //Calls readall bookings and adds them to a list
            List<IBooking> bookingEntities = dataAccessFacade.ReadAllBookings();
            List<Booking> bookings = new List<Booking>();

            foreach (IBooking bookingEntity in bookingEntities)
            {
                Booking booking = new Booking(bookingEntity, dataAccessFacade);
                bookings.Add(booking);
            }
            return bookings;
        }
Пример #42
0
        internal PaymentRule(Supplier supplier, Customer customer, BookingType bookingType, decimal percentage,
                             int daysOffset, BaseDate baseDate, PaymentType paymentType, IDataAccessFacade dataAccessFacade)
        {
            // validate
            validateCustomer(customer);
            validateSupplier(supplier);

            // Get entities for DataAccess
            ISupplier supplierEntity = supplier._supplierEntity;
            ICustomer customerEntity = customer._customerEntity;

            this.dataAccessFacade = dataAccessFacade;
            _paymentRuleEntity    = dataAccessFacade.CreatePaymentRule(supplierEntity, customerEntity, bookingType,
                                                                       percentage, daysOffset, baseDate, paymentType);
        }
Пример #43
0
 /// <summary>
 /// For testing against a specified DataAccessFacade
 /// </summary>
 /// <param name="dataAccessFacade"></param>
 public PaymentController(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     paymentCollection = new PaymentCollection(dataAccessFacade);
 }
Пример #44
0
        public PaymentController()
        {
            dataAccessFacade = DataAccessFacade.GetInstance();

            paymentCollection = new PaymentCollection(dataAccessFacade);
        }
Пример #45
0
 public CustomerController()
 {
     dataAccessFacade = DataAccessFacade.GetInstance();
     customerCollection = new CustomerCollection(dataAccessFacade);
 }
Пример #46
0
 /// <summary>
 /// For testing against a specified DataAccessFacade
 /// </summary>
 /// <param name="dataAccessFacade"></param>
 public CustomerController(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     customerCollection = new CustomerCollection(dataAccessFacade);
 }
Пример #47
0
 internal SupplierCollection(IDataAccessFacade dataAccessFacade)
 {
     //uses a new instance of dataAccessFacade and calls readAll.
     this.dataAccessFacade = dataAccessFacade;
     ReadAll();
 }
Пример #48
0
 public OpleidingRepository(IDataAccessFacade db, IBamaflexRepository bamaflexRepository)
 {
     _db = db;
     _genericRepository  = new GenericRepository <Opleiding>(db.Context);
     _bamaflexRepository = bamaflexRepository;
 }
Пример #49
0
 public AanvraagRepository(IDataAccessFacade db)
 {
     _db = db;
     _genericRepository = new GenericRepository <Request>(db.Context);
 }
Пример #50
0
        //Returns a list of all payments created, with dataAccessFacade as parameter to access ReadAllPayments
        //through dataAccessFacade, to get a list of paymentEntities.
        internal static List<Payment> ReadAll(IDataAccessFacade dataAccessFacade)
        {
            List<IPayment> paymentEntities = dataAccessFacade.ReadAllPayments();
            List<Payment> payments = new List<Payment>();

            //foreach converts each paymentEntity from paymentEntities to a payment, and adds it to a list of payments.
            foreach (IPayment paymentEntity in paymentEntities)
            {
                Payment payment = new Payment(paymentEntity, dataAccessFacade);
                payments.Add(payment);
            }
            return payments;
        }
Пример #51
0
 internal Customer(ICustomer customerEntity, IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     _customerEntity = customerEntity;
     initializeParty(_customerEntity);
 }
Пример #52
0
 public BookingCollection(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     ReadAll();
 }
Пример #53
0
 internal CustomerCollection(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     ReadAll();
 }
Пример #54
0
 public BookingCollection(IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     ReadAll();
 }
Пример #55
0
 public FeedbackRepository(IDataAccessFacade db)
 {
     _db = db;
     _genericRepository = new GenericRepository <Feedback>(db.Context);
 }
Пример #56
0
 public BewijsRepository(IDataAccessFacade db)
 {
     _db = db;
     _genericRepository = new GenericRepository <Evidence>(db.Context);
 }
Пример #57
0
 internal Customer(ICustomer customerEntity, IDataAccessFacade dataAccessFacade)
 {
     this.dataAccessFacade = dataAccessFacade;
     _customerEntity       = customerEntity;
     initializeParty(_customerEntity);
 }
Пример #58
0
 internal SupplierCollection(IDataAccessFacade dataAccessFacade)
 {
     //uses a new instance of dataAccessFacade and calls readAll.
     this.dataAccessFacade = dataAccessFacade;
     ReadAll();
 }