public void GetCompanyInformationTest() { var response = CompanyInformationService.GetCompanyInformationAsync( new FortnoxApiRequest(this.connectionSettings.AccessToken, this.connectionSettings.ClientSecret) { }).GetAwaiter().GetResult(); Assert.IsNotNull(response); }
public CompanyInformationController(IConfiguration configuration) { this.connectionString = configuration.GetConnectionString("ConnectionString"); this._companyInformationService = new CompanyInformationService(new CompanyInformationRepository(connectionString)); }