public async Task ActivityDoesNotExist()
        {
            var context = ServiceProvider.GetService <AllReadyContext>();
            var query   = new ActivityDetailForNotificationQueryAsync {
                ActivityId = 999, UserId = _user1.Id
            };
            var handler = new ActivityDetailForNotificationQueryHandlerAsync(context);

            var result = await handler.Handle(query);

            Assert.Null(result);
        }
        public async Task ModelCanBeCreatedFomExistingActivity()
        {
            var context = ServiceProvider.GetService <AllReadyContext>();
            var query   = new ActivityDetailForNotificationQueryAsync {
                ActivityId = 1, UserId = _user1.Id
            };
            var handler = new ActivityDetailForNotificationQueryHandlerAsync(context);

            var result = await handler.Handle(query);

            Assert.NotNull(result);
            Assert.True(_queenAnne.UsersSignedUp.Count == result.UsersSignedUp.Count, "Count of signed up users does not match");
            Assert.True(_queenAnne.Tasks.Count == result.Tasks.Count, "Count of tasks does not match");
            Assert.True(_queenAnne.Tasks[0].AssignedVolunteers.Count == result.Tasks[0].AssignedVolunteers.Count, "Count of volunteers assigned to tak does not match");
            Assert.True(_firePrev.CampaignContacts.Count == result.CampaignContacts.Count, "Count of campaign contacts does not match");
        }
        public async Task ActivityDoesNotExist()
        {
            var context = ServiceProvider.GetService<AllReadyContext>();
            var query = new ActivityDetailForNotificationQueryAsync { ActivityId = 999, UserId = _user1.Id};
            var handler = new ActivityDetailForNotificationQueryHandlerAsync(context);

            var result = await handler.Handle(query);

            Assert.Null(result);
        }
        public async Task ModelCanBeCreatedFomExistingActivity()
        {
            var context = ServiceProvider.GetService<AllReadyContext>();
            var query = new ActivityDetailForNotificationQueryAsync { ActivityId = 1, UserId = _user1.Id };
            var handler = new ActivityDetailForNotificationQueryHandlerAsync(context);

            var result = await handler.Handle(query);

            Assert.NotNull(result);
            Assert.True(_queenAnne.UsersSignedUp.Count == result.UsersSignedUp.Count, "Count of signed up users does not match");
            Assert.True(_queenAnne.Tasks.Count == result.Tasks.Count, "Count of tasks does not match");
            Assert.True(_queenAnne.Tasks[0].AssignedVolunteers.Count == result.Tasks[0].AssignedVolunteers.Count, "Count of volunteers assigned to tak does not match");
            Assert.True(_firePrev.CampaignContacts.Count == result.CampaignContacts.Count, "Count of campaign contacts does not match");
        }