Exemplo n.º 1
0
        public async Task <IActionResult> GetMemberMeetingGroupProposals()
        {
            var meetingGroupProposals = await _meetingsModule.ExecuteQueryAsync(
                new GetMemberMeetingGroupProposalsQuery());

            return(Ok(meetingGroupProposals));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetAuthenticatedMemberMeetingGroups()
        {
            var meetingGroups = await _meetingsModule.ExecuteQueryAsync(
                new GetAuthenticationMemberMeetingGroupsQuery());

            return(Ok(meetingGroups));
        }
        public async Task <IActionResult> GetMeetingGroupProposals(int?page, int?perPage)
        {
            var meetingGroupProposals = await _meetingsModule.ExecuteQueryAsync(
                new GetMeetingGroupProposalsQuery(page, perPage));

            return(Ok(meetingGroupProposals));
        }
        public async Task <IActionResult> GetAllCountries(int?page, int?perPage)
        {
            var countries = await _meetingsModule.ExecuteQueryAsync(
                new GetAllCountriesQuery());

            return(Ok(countries));
        }
Exemplo n.º 5
0
        public static async Task <Guid> CreateMeetingAsync(
            IMeetingsModule meetingsModule,
            ExecutionContextMock executionContext)
        {
            var proposalId = await meetingsModule.ExecuteCommandAsync(
                new ProposeMeetingGroupCommand(
                    "Amazing group",
                    "Absolutely amazing meeting group.",
                    "London",
                    "UK"));

            await meetingsModule.ExecuteCommandAsync(
                new CreateNewMeetingGroupCommand(
                    Guid.NewGuid(),
                    new MeetingGroupProposalId(proposalId)));

            var meetingGroups = await meetingsModule.ExecuteQueryAsync(new GetAllMeetingGroupsQuery());

            var meetingGroup = meetingGroups.Single();

            await meetingsModule.ExecuteCommandAsync(
                new SetMeetingGroupExpirationDateCommand(
                    Guid.NewGuid(),
                    meetingGroup.Id,
                    SystemClock.Now.AddMonths(1)));

            var meetingId = await meetingsModule.ExecuteCommandAsync(
                new CreateMeetingCommand(
                    meetingGroup.Id,
                    "Some meeting",
                    DateTime.UtcNow.AddDays(1),
                    DateTime.UtcNow.AddDays(10),
                    "Some very nice meeting.",
                    "UK",
                    "Baker street",
                    "W2 2SZ",
                    "London",
                    25,
                    1,
                    null,
                    null,
                    null,
                    null,
                    new List <Guid> {
                executionContext.UserId
            }));

            return(meetingId);
        }
 public async Task SampleAsync()
 {
     _meetingComments = await _meetingsModule.ExecuteQueryAsync(new GetMeetingCommentsQuery(_meetingId));
 }
Exemplo n.º 7
0
 public async Task SampleAsync()
 {
     _allMeetingGroups = await _meetingsModule.ExecuteQueryAsync(new GetAllMeetingGroupsQuery());
 }
        public async Task <IActionResult> GetMeetingDetails(Guid meetingId)
        {
            var meetingDetails = await _meetingsModule.ExecuteQueryAsync(new GetMeetingDetailsQuery(meetingId));

            return(Ok(meetingDetails));
        }