public IList <DepartmentOrderDto> GetDepartmentOrderFilter(DepartmentOrderFilter filter) { return (Builder <DepartmentOrderDto> .CreateListOfSize(10) .All() .With(x => x.Catalog, Builder <CatalogDto> .CreateNew().Build()) .Build()); }
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)); }
public IList <DepartmentOrderDto> GetDepartmentOrderFilter(DepartmentOrderFilter filter) { var orders = GetEntities <DepartmentOrderFilter, DepartmentOrderDto>(filter); return(orders); }