private async Task <CreateSubjectDto> CreateSubjectAsync(CreateInstructorItemDto instructorDto) { var createSubjectItemCommand = new CreateSubjectItemCommand() { Title = "Subject1", InstructorList = new List <Guid> { instructorDto.Id }, }; return(await SendWithValidationAsync(createSubjectItemCommand, new CreateSubjectItemCommandValidator())); }
private async Task <CreateLocationItemDto> CreateLocationWithInstructorAsync(CreateInstructorItemDto instructorDto) { var locationDto = await SendWithValidationAsync(new CreateLocationItemCommand() { IsEnabled = true, Name = "location1", Address = "address1", OpeningTime = new TimeSpan(0, 19, 0), ClosingTime = new TimeSpan(0, 21, 0), InstructorLists = new List <Guid> { instructorDto.Id }, }, new CreateLocationItemCommandValidator()); return(locationDto); }