Browse Source

Fix comments.

pull/96/head
Halil İbrahim Kalkan 9 years ago
parent
commit
7edf315797
  1. 2
      test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/PersonAppService_Tests.cs
  2. 1
      test/Volo.Abp.TestApp/Volo/Abp/TestApp/Application/IPersonAppService.cs

2
test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/PersonAppService_Tests.cs

@ -170,7 +170,7 @@ namespace Volo.Abp.AspNetCore.Mvc
var douglas = _personRepository.GetList().First(p => p.Name == "Douglas"); var douglas = _personRepository.GetList().First(p => p.Name == "Douglas");
var firstPhone = douglas.Phones.First(); var firstPhone = douglas.Phones.First();
//Ideally should be [DELETE] /api/app/person/{id} //Ideally should be [DELETE] /api/app/person/{id}/phones/{phoneId}
await Client.DeleteAsync($"/api/app/person/{douglas.Id}/Phone?phoneId=" + firstPhone.Id); await Client.DeleteAsync($"/api/app/person/{douglas.Id}/Phone?phoneId=" + firstPhone.Id);
douglas = _personRepository.GetList().First(p => p.Name == "Douglas"); douglas = _personRepository.GetList().First(p => p.Name == "Douglas");

1
test/Volo.Abp.TestApp/Volo/Abp/TestApp/Application/IPersonAppService.cs

@ -11,7 +11,6 @@ namespace Volo.Abp.TestApp.Application
Task<PhoneDto> AddPhone(Guid id, PhoneDto phoneDto); Task<PhoneDto> AddPhone(Guid id, PhoneDto phoneDto);
//URL: [DELETE] /api/people/{id}/phones/{phoneId}
Task DeletePhone(Guid id, long phoneId); Task DeletePhone(Guid id, long phoneId);
} }
} }
Loading…
Cancel
Save