protected virtual void ValidateStoreProperties(Store store)
        {
            if (store == null)
            {
                throw new ArgumentNullException(nameof(store));
            }

            var validator = new StoreValidator();

            validator.ValidateAndThrow(store);
        }
Exemplo n.º 2
0
        private void ValidateStoresProperties(IEnumerable <Store> stores)
        {
            if (stores == null)
            {
                throw new ArgumentNullException(nameof(stores));
            }

            var validator = new StoreValidator();

            foreach (var store in stores)
            {
                validator.ValidateAndThrow(store);
            }
        }