[TestMethod()]//Check if newly cretaed company info are being inserted in the database from xml. public void InsertCreateCompanyInfoTestToCheckCompanyInfoInsertionInDatabase() { //Act var accinfo = AvaTaxProfileAssistantHelper.InsertAccountInfo(input.AccountCredentials); var CompanyInfo = AvaTaxProfileAssistantHelper.InsertCreateCompanyInfo(input.Company, accinfo.ID); //Assert Assert.AreEqual(true, CompanyInfo, "Company info insertion in database failed!!"); }
[TestMethod()]//Check if it returns the correct Company Info details. public void GetCreateCompanyInfoTestToCheckIfCorrectCompanyDetailsAreReturned() { //Act var AccountInfo = AvaTaxProfileAssistantHelper.InsertAccountInfo(input.AccountCredentials); var InsertCompanyInfo = AvaTaxProfileAssistantHelper.InsertCreateCompanyInfo(input.Company, AccountInfo.ID); var CompanyInfo = AvaTaxProfileAssistantHelper.GetCreateCompanyInfo(AccountInfo.ID); //Assert Assert.AreEqual(input.Company.TIN, CompanyInfo.TIN, "Incorrect TIN!!"); Assert.AreEqual(input.Company.CompanyName, CompanyInfo.CompanyName, "Incorrect Company name!!"); }