public async Task CreateCompany(int id, string externalId, string tradingName, string legalName,
                                        int companyType, bool unused, bool isForwarder, string phone, string fax, int?addressId,
                                        int?mailAddressId, bool isCustomClearance, bool isActive, bool isCarrier, bool isWarehouse,
                                        string chamberOfCommerce, string chamberOfCommerceCi, string countryVAT, bool isExchangeBroker)
        {
            var company = new Company()
            {
                Id                  = id,
                ExternalId          = externalId,
                TradingName         = tradingName,
                LegalName           = legalName,
                CompanyType         = companyType,
                Unused              = unused,
                IsForwarder         = isForwarder,
                Phone               = phone,
                Fax                 = fax,
                AddressId           = addressId,
                MailAddressId       = mailAddressId,
                IsCustomClearance   = isCustomClearance,
                IsActive            = isActive,
                IsCarrier           = isCarrier,
                IsWarehouse         = isWarehouse,
                ChamberOfCommerce   = chamberOfCommerce,
                ChamberOfCommerceCi = chamberOfCommerceCi,
                CountryVAT          = countryVAT,
                IsExchangeBroker    = isExchangeBroker
            };

            var repositoryMock = new Mock <IRepository>();

            repositoryMock.Setup(x => x.CreateAsync(company)).ReturnsAsync(() => company);
            var companyService = new CompanyService(repositoryMock.Object);

            var result = await companyService.CreateEntity(company);

            repositoryMock.Verify(x => x.CreateAsync(It.IsAny <Company>()), Times.Once);
            Assert.Equal(company, result);
        }