public Customer Create(Customer customer, CityCounty CityCounty) { var _customer = new Customer { CityCounty = CityCounty, CityCountyId = CityCounty.Id }; return(_customer); }
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>(); }