public void Should_Get_Specialty_With_Success() { //Act var response = _specialtyAppService.GetSpecialty(new RequestDto(1)); //Assert Assert.False(LocalNotification.HasNotification()); response.Id.ShouldBe(1); response.Description.ShouldBe(_specialtyPoco.Description); }
public IActionResult Get(int id, [FromQuery] RequestDto requestDto) { requestDto.WithId(id); var response = _specialtyAppService.GetSpecialty(requestDto); return(CreateResponse <SpecialtyDto>() .FromErrorEnum(SpecialtyDto.Error.GetSpecialty) .WithMessage(AppConsts.LocalizationSourceName, SpecialtyDto.Error.GetSpecialty) .WithDto(response) .Build()); }