public async Task Create_Get_Update_Delete_Tenant_Test() { var dto = new CreateTenantDto { DisplayName = "Tenant_TEST", IsActive = true, TenancyName = "Tenant_TEST" }; await _tenantAppService.CreateTenant(dto); var dtoEdit = await _tenantAppService.GetTenant(dto.TenancyName); dtoEdit.ShouldNotBe(null); dtoEdit.TenancyName.ShouldBe("Tenant_TEST"); dtoEdit.TenancyName = "Tenant_TEST_UPDATE"; await _tenantAppService.UpdateTenant(dtoEdit); var dtoGet = await _tenantAppService.GetTenant("Tenant_TEST_UPDATE"); dtoGet.ShouldNotBe(null); dtoEdit.TenancyName.ShouldBe("Tenant_TEST_UPDATE"); await _tenantAppService.DeleteTenant(new Abp.Application.Services.Dto.EntityRequestInput <Guid>(dtoGet.Id)); var tenant = await _tenantAppService.GetTenant(new Abp.Application.Services.Dto.EntityRequestInput <Guid>(dtoGet.Id)); tenant.ShouldBe(null); }