public TasksByApplicationUserIdQueryHandlerShould()
        {
            message = new TasksByApplicationUserIdQuery { ApplicationUserId = Guid.NewGuid().ToString() };
            alreadyTask = new AllReadyTask { Name = "name" };
            task = new TaskSignup { User = new ApplicationUser { Id = message.ApplicationUserId }, Task = alreadyTask };

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

            sut = new TasksByApplicationUserIdQueryHandler(Context);
        }
Exemplo n.º 2
0
        public TasksByApplicationUserIdQueryHandlerShould()
        {
            message = new TasksByApplicationUserIdQuery {
                ApplicationUserId = Guid.NewGuid().ToString()
            };
            alreadyTask = new AllReadyTask {
                Name = "name"
            };
            task = new TaskSignup {
                User = new ApplicationUser {
                    Id = message.ApplicationUserId
                }, Task = alreadyTask
            };

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

            sut = new TasksByApplicationUserIdQueryHandler(Context);
        }