Пример #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));
     }
 }
Пример #3
0
 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;
 }
Пример #6
0
 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;
 }