Ejemplo n.º 1
0
        public async Task CanGetInWhereAsync()
        {
            Collection.Add(_statistics);
            var discountIds = new List <Guid> {
                _statistics.Id
            };
            var result =
                await _repository.GetInWhereAsync(s => s.DiscountId, discountIds, DateTime.Today, DateTime.Today);

            Assert.NotEmpty(result);
            var resultEmpty =
                await _repository.GetInWhereAsync(s => s.DiscountId, discountIds, default(DateTime), default(DateTime));

            Assert.NotEmpty(result);
        }