public IActionResult Get([FromQuery] GetAllSpecialtiesDto requestDto) { var response = _specialtyAppService.GetAllSpecialties(requestDto); return(CreateResponse <SpecialtyDto>() .FromErrorEnum(SpecialtyDto.Error.GetAllSpecialty) .WithMessage(AppConsts.LocalizationSourceName, SpecialtyDto.Error.GetAllSpecialty) .WithDto(response) .Build()); }
public void Should_Get_All_Specialties_With_Success() { //Act var response = _specialtyAppService.GetAllSpecialties(new GetAllSpecialtiesDto() { PageSize = 10 }); //Assert Assert.False(LocalNotification.HasNotification()); response.Items.Count.ShouldBe(1); }