最小起订量查询永不返回
我不确定我做错了什么,但是在测试中运行它时,这行代码永远不会返回(似乎导致失控进程):
var discountMemberCustomer = (from customer in Mocks.Query<Customer>()
where customer.IsDiscountMember &&
customer.OrderCount == 13 &&
customer.LifetimeCustomerValue == 5555m
select customer).First();
据我所知,我正在遵循示例: http://www.clariusconsulting.net/博客/kzu/archive/2009/08/13/164978.aspx
I'm not sure what i'm doing wrong, but this line of code is never returning (seems to result in a run-away process) when running it in a test:
var discountMemberCustomer = (from customer in Mocks.Query<Customer>()
where customer.IsDiscountMember &&
customer.OrderCount == 13 &&
customer.LifetimeCustomerValue == 5555m
select customer).First();
As far as I can tell, I'm following the examples: http://www.clariusconsulting.net/blogs/kzu/archive/2009/08/13/164978.aspx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试“设置”
IsDiscountMember
:Try "setting"
IsDiscountMember
:哇,这真是一个好收获!
你能将其报告为谷歌代码中的问题吗?
Wow, that's a good catch!
Can you report it as an issue in google code??