public void ReturnsStoreWithId10_GivenStoreByIdSpec() { var spec = new StoreByIdSpec(10); var store = evaluator.GetQuery(StoreSeed.AsQueryable(), spec).FirstOrDefault(); store.Id.Should().Be(10); }
public void ReturnsStoreWithId10_GivenStoreByIdSpec() { var spec = new StoreByIdSpec(10); var store = spec.Evaluate(StoreSeed.Get()).FirstOrDefault(); store?.Id.Should().Be(10); }
public void AddsOneExpressionToList_GivenOneWhereExpression() { var spec = new StoreByIdSpec(1); spec.WhereExpressions.Should().ContainSingle(); }