public async Task ArchiveNationalSociety_WhenHasNoProjectsAndNoUsersExceptHeadManager_ReturnsSuccess() { //arrange _testData.WhenHasNoProjectsAndNoUsersExceptHeadManagerWithRoleManager.GenerateData().AddToDbContext(); var nationalSocietyBeingArchived = _testData.WhenHasNoProjectsAndNoUsersExceptHeadManagerWithRoleManager.AdditionalData.NationalSocietyBeingArchived; var nationalSocietyBeingArchivedId = nationalSocietyBeingArchived.Id; //act var result = await _nationalSocietyService.Archive(nationalSocietyBeingArchivedId); //assert result.IsSuccess.ShouldBeTrue(); nationalSocietyBeingArchived.IsArchived.ShouldBeTrue(); }
public async Task <Result> Archive(int nationalSocietyId) => await _nationalSocietyService.Archive(nationalSocietyId);