Ejemplo n.º 1
0
        public Customer Create(Customer customer, CityCounty CityCounty)
        {
            var _customer = new Customer
            {
                CityCounty   = CityCounty,
                CityCountyId = CityCounty.Id
            };

            return(_customer);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            _mocker = new AutoMoqer();

            _city = new CityCounty()
            {
                Id   = Id,
                Name = Name
            };

            _cities = new List <CityCounty>()
            {
                _city
            };

            _mocker.GetMock <ICityCountyRepository>()
            .Setup(p => p.GetAll())
            .Returns(_cities.AsQueryable());

            _query = _mocker.Create <GetCityCountiesListQuery>();
        }