示例#1
0
 public IQueryable <NotificationEvent> GetByState(MessageStateTypes state)
 {
     using (var context = _provider.Provide())
     {
         return(context.Notifications.Where(n => n.State.Equals(state)));
     }
 }
示例#2
0
 public IQueryable<NotificationEvent> GetByState(MessageStateTypes state)
 {
     using (var context = _provider.Provide())
     {
         return context.Notifications.Where(n => n.State.Equals(state));
     }
 }
 public void TheQueryForId_AndState_IsExecuted(Guid id, MessageStateTypes state)
 {
     _queryResults = _sut.Filter(new NotificationByIdQuery(id), new NotificationByStateQuery(state));
 }
 public IQueryable <NotificationEvent> GetByState(MessageStateTypes state)
 {
     return(LoadAll().Where(n => n.State.Equals(state)));
 }
示例#5
0
 public NotificationByStateQuery(MessageStateTypes state)
 {
     _state = (int)state;
 }
 public void TheQueryForId_AndState_IsExecuted(Guid id, MessageStateTypes state)
 {
     _queryResults = _sut.Filter(new NotificationByIdQuery(id), new NotificationByStateQuery(state));
 }
 public IQueryable<NotificationEvent> GetByState(MessageStateTypes state)
 {
     return LoadAll().Where(n => n.State.Equals(state));
 }
 public NotificationByStateQuery(MessageStateTypes state)
 {
     _state = (int)state;
 }