[TestMethod()]//Check if AvaErpSettingsID returned matches the one in database. public void InsertAvaERPSettingTestToCheckCorrectAvaERPSettingsIDReturned() { //Act var AccountInfo = AvaTaxProfileAssistantHelper.InsertAccountInfo(input.AccountCredentials); var AvaERPSetting = AvaTaxProfileAssistantHelper.InsertAvaERPSetting(input.AvaERPSettings, AccountInfo.ID); var expectedID = AvaTaxProfileAssistantHelper.GetAvaERPSettingMaster(AccountInfo.ID); //Assert Assert.AreEqual(expectedID.ID, AvaERPSetting, "The inserted and fetched ID does not match!!"); }
[TestMethod()]//Check if it returns a AvaERPSettingMaster public void GetAvaERPSettingMasterTestToCheckIfItReturnsAvaERPSettingMaster() { //Arrange var AccountInfo = AvaTaxProfileAssistantHelper.InsertAccountInfo(input.AccountCredentials); var AvaERPSetting = AvaTaxProfileAssistantHelper.InsertAvaERPSetting(input.AvaERPSettings, AccountInfo.ID); //Act var result = AvaTaxProfileAssistantHelper.GetAvaERPSettingMaster(AccountInfo.ID); //Assert Assert.IsInstanceOfType(result, typeof(AvaERPSettingsMaster), "Incorrect result type returned!!"); }