예제 #1
0
        public async Task AttendeeSessionsQuery()
        {
            var query = new AttendeeSessionsQuery(new ConnectionFactory(@"Server=(localdb)\MSSQLLocalDB; Database=Eventador.EventadorContext; Integrated Security=True; MultipleActiveResultSets=True"));

            var result = await query.Execute(new AttendeeSessionsQueryParameters { EventId = Guid.NewGuid() });

            result.ShouldBeEmpty();
        }
예제 #2
0
 public Task <AttendeeSessionsQueryResult[]> GetWithSessions(AttendeeSessionsQueryParameters parameters)
 {
     return(_attendeeSessionsQuery.Execute(parameters));
 }