public IList <DepartmentOrderDto> GetDepartmentOrderFilter(DepartmentOrderFilter filter)
 {
     return
         (Builder <DepartmentOrderDto> .CreateListOfSize(10)
          .All()
          .With(x => x.Catalog, Builder <CatalogDto> .CreateNew().Build())
          .Build());
 }
Ejemplo n.º 2
0
        public void DepartmentOrderFilterStrategy()
        {
            var filter = new DepartmentOrderFilter
            {
                StateDate         = new Between <DateTime?>(new DateTime(1900, 1, 1), DateTime.Now),
                Numb              = 1,
                Pref              = "Ew",
                WarehouseReceiver = new StoreGasStationOilDepotFilter {
                    AzsNumber = "sd*"
                },
            };

            var query = GetFilterStrategy(new DepartmentOrderFilterStrategy(), filter);

            Assert.That(query.RowCount(), Is.Not.EqualTo(0));
        }
Ejemplo n.º 3
0
        public IList <DepartmentOrderDto> GetDepartmentOrderFilter(DepartmentOrderFilter filter)
        {
            var orders = GetEntities <DepartmentOrderFilter, DepartmentOrderDto>(filter);

            return(orders);
        }