public void BusinessBaseFactory_Fetch_WithNull_Critiria_Throws()
        {
            BusinessBaseServerFactory<Product> _factory = new BusinessBaseServerFactory<Product>(_repository);

            Product product = _factory.Create();
            product = _factory.Fetch(null);
        }
 public void BusinessBaseFactory_Fetch_No_Criteria_Throws()
 {
     BusinessBaseServerFactory<Product> _factory = new BusinessBaseServerFactory<Product>(_repository);
     Product product = _factory.Fetch();
 }
        public void BusinessBaseFactory_Fetch_WithCriteria_ReturnsObject()
        {
            BusinessBaseServerFactory<Product> _factory = new BusinessBaseServerFactory<Product>(_repository);

            Product product = _factory.Create();
            product = _factory.Fetch(new SingleCriteria<Product, int>(32));

            _repository.AssertWasCalled(x => x.Load(product, 32));
        }