public async System.Threading.Tasks.Task UpdateCompany()
        {
            Assert.AreNotEqual(Guid.Empty, company.CompanyId);

            company.Name = "New name";
            await pinzService.UpdateCompanyAsync(company);

            Company company2 = await adminService.ReadCompanyByIdAsync(company.CompanyId);

            Assert.AreEqual(company.Name, company2.Name);
        }
        private async Task OnUpdateCompany()
        {
            if (Company.ValidateModel())
            {
                try
                {
                    await _pinzAdminService.UpdateCompanyAsync(Company);

                    IsCompanyEditorVisible = false;
                }
                catch (TimeoutException timeoutEx)
                {
                    _eventAggregator.GetEvent <TimeoutErrorEvent>().Publish(timeoutEx);
                }
            }
        }