Skip to content

Instantly share code, notes, and snippets.

View yaseminvural99's full-sized avatar

yaseminvural99

View GitHub Profile
@isTest
public class StockItemHandlerTestOne{
// Test method for handlerBeforeInsert method
@isTest
static void testHandlerBeforeInsert() {
// Test data setup
List<Stock_Item__c> newStockItems = new List<Stock_Item__c>();
Stock_Item__c item1 = new Stock_Item__c(Item_Name__c = 'Test Item 1');
Stock_Item__c item2 = new Stock_Item__c(Item_Name__c = 'Test Item 2');
Stock_Item__c item3 = new Stock_Item__c(Item_Name__c = 'Test Item 1');
@yaseminvural99
yaseminvural99 / API_authorizeDotNet.cls
Created May 30, 2024 12:13
AuthorizeNetDotWithLWC
public class API_authorizeDotNet {
//variable to hold credentilas
public static String APILOGIN;
public static String APITRANSKEY;
public static void getAuthNetCreds(){
Authorise_Net_Setting__c apiloginSetting = Authorise_Net_Setting__c.getInstance('API Login ID');
Authorise_Net_Setting__c apitranskeySetting = Authorise_Net_Setting__c.getInstance('Transaction Key');
System.debug('apiloginSetting '+ apiloginSetting);
system.debug('apitranskeySetting '+ apitranskeySetting);
template>
<!--Command +F yazinca aramak istedigimi word uzerinden arayabilirim-->
<div class="slds-col slds-size_1-of-1 slds-medium-size_1-of-1 slds-large-size_1-of-1" style="background-color: rgb(164, 142, 115);">
<img src="https://t3.ftcdn.net/jpg/05/75/22/58/360_F_575225818_PQ2ZPHFw51yCcmieutB5bT843nPAPzo3.jpg" alt="lawPicture">
<br><br>
<div style="background:white;padding:4px">
<div class="slds-m-around_medium">
<h1 style="font-weight: bold; color: #0070D2;">Fill the Form For Confirmation</h1>
</div>
@isTest
public class StockItemHandlerTestOne{
// Test method for handlerBeforeInsert method
@isTest
static void testHandlerBeforeInsert() {
// Test data setup
List<Stock_Item__c> newStockItems = new List<Stock_Item__c>();
Stock_Item__c item1 = new Stock_Item__c(Item_Name__c = 'Test Item 1');
Stock_Item__c item2 = new Stock_Item__c(Item_Name__c = 'Test Item 2');
Stock_Item__c item3 = new Stock_Item__c(Item_Name__c = 'Test Item 1');