コード例 #1
0
        public async Task Should_Success_Get_Data_By_Tags()
        {
            GarmentPurchaseRequestFacade facade = new GarmentPurchaseRequestFacade(ServiceProvider, _dbContext(GetCurrentMethod()));
            var model = await dataUtil(facade, GetCurrentMethod()).GetTestData();

            var Response = facade.ReadByTags($"#{model.UnitName} #{model.BuyerName}", model.ShipmentDate.AddDays(-1), model.ShipmentDate.AddDays(1));

            Assert.NotNull(Response);

            var ResponseWhiteSpace = facade.ReadByTags("", DateTimeOffset.MinValue, DateTimeOffset.MinValue);

            Assert.NotNull(ResponseWhiteSpace);
        }
        public async Task <List <GarmentInternalPurchaseOrder> > GetTestDataByTags(GarmentPurchaseRequest garmentPurchaseRequest = null)
        {
            var testData = await GetTestData(garmentPurchaseRequest);

            return(facade.ReadByTags($"#{testData.UnitName}#{testData.BuyerName}", DateTimeOffset.MinValue, DateTimeOffset.MinValue));
        }