예제 #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;
 }