public IQueryable <NotificationEvent> GetByState(MessageStateTypes state) { using (var context = _provider.Provide()) { return(context.Notifications.Where(n => n.State.Equals(state))); } }
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))); }
public NotificationByStateQuery(MessageStateTypes state) { _state = (int)state; }
public IQueryable<NotificationEvent> GetByState(MessageStateTypes state) { return LoadAll().Where(n => n.State.Equals(state)); }