Exemple #1
0
        public TasksByApplicationUserIdQueryHandlerShould()
        {
            message = new VolunteerTasksByApplicationUserIdQuery {
                ApplicationUserId = Guid.NewGuid().ToString()
            };
            alreadyTask = new VolunteerTask {
                Name = "name"
            };
            task = new VolunteerTaskSignup {
                User = new ApplicationUser {
                    Id = message.ApplicationUserId
                }, VolunteerTask = alreadyTask
            };

            Context.Add(alreadyTask);
            Context.Add(task);
            Context.SaveChanges();

            sut = new VolunteerTasksByApplicationUserIdQueryHandler(Context);
        }