public async Task UpdateAsync() { // Arrange var input = new OrganizationUpdateDto() { Name = "966e736b2542492b9f98691be10a4e1ea6bc990f5c9a4bee89", Number = "732d0cd488ba4d74a5982b7c1d43de29c2d9c3d8de084207ac", Street = "afe59b931a974badbb9d2d21927723c57098bed9f93d4eaabe79418ea581958bdc593729b8a34a1dbf5b34cb38b1622a4bd4", City = "6256d63565904f5684897fe3876166b84c01115949724fe1be", State = "21d588243dac47588dbde23634da56ab09c02af57ca844f4ac", Zipcode = "92b61d2b93cb429", Phone = "6bf3d3988b50486", Fax = "520c8a930766469", Notes = "9a04963251c444af9fbaaed89cf8ca3bbbb1c48c1b6744c9a5183d373e26d975c832eb838d2040a489136b111e1b3ee96f3561155a1c45c1bf2a014b0c8068017eba14faab764074a300d271e0c1d52c9ee9bbf28f184955823816b4c71219c98a25fb1d2d504606a09d11c377ffe17b45e1fd062ae04888937e536499162704d47f690d891f4bb3a0d96b0936bf24b003db136365c54d7c82c397e8f2532e6bc3d4fd94f80a4a52bf3ca43df673c76f44079dd975db4caa866a120bf097585d9b79f5b287924b769285ab2b5777b5b899ac1d4eb9b647fc86eb2c7105b3b01450975f3de3a749adb8b0fd222acf5b48a806203c4a0c469387efdf5bef1ceb4c29c12dd3a6e0430e9d3562e8fd27fc32e2d6c1a7d0324bf3b5c205ee2edbdf4c7193457114a04d7889970dd9ce09709ffed579fbc3fa48fea91877874760e92b013df9f02d8743e2afeaea4ef76cbdeeb11101d1b9d34cd2b7cff2029d0671b5ca79569580fa4a21a69b41a316bb1bce47e8c6d2e2f54b1ba0722ba4d6bba7c3baa78b10382e402683fee60e645dbcb4a753674c3e714982b2d858c19313ad38adea35838b9b40e280a6333b57a31aa55d55c7623afe4748ac1153169b5221f9cd9010d87d41451a853d99dc20755be237a4dbbd38f548ea91674ce3c6a9b420bb1c8c399bd44caabf6d62c98832e24e354d7bf337a843e585244dc6d74ceab8" }; // Act var serviceResult = await _organizationAppService.UpdateAsync(Guid.Parse("8895847e-95d9-4f87-bbaa-41a03fe5cfa2"), input); // Assert var result = await _organizationRepository.FindAsync(c => c.Id == serviceResult.Id); result.ShouldNotBe(null); result.Name.ShouldBe("966e736b2542492b9f98691be10a4e1ea6bc990f5c9a4bee89"); result.Number.ShouldBe("732d0cd488ba4d74a5982b7c1d43de29c2d9c3d8de084207ac"); result.Street.ShouldBe("afe59b931a974badbb9d2d21927723c57098bed9f93d4eaabe79418ea581958bdc593729b8a34a1dbf5b34cb38b1622a4bd4"); result.City.ShouldBe("6256d63565904f5684897fe3876166b84c01115949724fe1be"); result.State.ShouldBe("21d588243dac47588dbde23634da56ab09c02af57ca844f4ac"); result.Zipcode.ShouldBe("92b61d2b93cb429"); result.Phone.ShouldBe("6bf3d3988b50486"); result.Fax.ShouldBe("520c8a930766469"); result.Notes.ShouldBe("9a04963251c444af9fbaaed89cf8ca3bbbb1c48c1b6744c9a5183d373e26d975c832eb838d2040a489136b111e1b3ee96f3561155a1c45c1bf2a014b0c8068017eba14faab764074a300d271e0c1d52c9ee9bbf28f184955823816b4c71219c98a25fb1d2d504606a09d11c377ffe17b45e1fd062ae04888937e536499162704d47f690d891f4bb3a0d96b0936bf24b003db136365c54d7c82c397e8f2532e6bc3d4fd94f80a4a52bf3ca43df673c76f44079dd975db4caa866a120bf097585d9b79f5b287924b769285ab2b5777b5b899ac1d4eb9b647fc86eb2c7105b3b01450975f3de3a749adb8b0fd222acf5b48a806203c4a0c469387efdf5bef1ceb4c29c12dd3a6e0430e9d3562e8fd27fc32e2d6c1a7d0324bf3b5c205ee2edbdf4c7193457114a04d7889970dd9ce09709ffed579fbc3fa48fea91877874760e92b013df9f02d8743e2afeaea4ef76cbdeeb11101d1b9d34cd2b7cff2029d0671b5ca79569580fa4a21a69b41a316bb1bce47e8c6d2e2f54b1ba0722ba4d6bba7c3baa78b10382e402683fee60e645dbcb4a753674c3e714982b2d858c19313ad38adea35838b9b40e280a6333b57a31aa55d55c7623afe4748ac1153169b5221f9cd9010d87d41451a853d99dc20755be237a4dbbd38f548ea91674ce3c6a9b420bb1c8c399bd44caabf6d62c98832e24e354d7bf337a843e585244dc6d74ceab8"); }
public Task UpdateAsync(Guid id, UpdateOrganizationDto input) { return(_orgAppSvc.UpdateAsync(id, input)); }
public async Task <IActionResult> OnPostAsync() { await _organizationAppService.UpdateAsync(Id, Organization); return(NoContent()); }
public Task <OrganizationDto> UpdateAsync(Guid id, CreateUpdateAbpOrganizationDto input) { return(_abpOrganizationAppService.UpdateAsync(id, input)); }