protected async Task InitStatus(VolunteerTaskStatus status) { var volunteerTaskSignup = Context.VolunteerTaskSignups.First(); volunteerTaskSignup.Status = status; await Context.SaveChangesAsync(); }
protected ChangeVolunteerTaskStatusCommand CreateCommand(VolunteerTaskStatus status, string description = "") { var user = Context.Users.First(); var volunteerTask = Context.VolunteerTasks.First(); return(new ChangeVolunteerTaskStatusCommand { UserId = user.Id, VolunteerTaskId = volunteerTask.Id, VolunteerTaskStatus = status, VolunteerTaskStatusDescription = description ?? string.Empty }); }