From fbed1d0e6e5cc7027f43d2c3036354be8e6b9992 Mon Sep 17 00:00:00 2001 From: Janne Pennanen Date: Thu, 15 Aug 2024 12:31:05 +0300 Subject: [PATCH] More whitespace fixes --- .../Frends.Salesforce.CreateSObject.Tests/UnitTests.cs | 7 ++++--- .../Frends.Salesforce.DeleteSObject.Tests/UnitTests.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Frends.Salesforce.CreateSObject/Frends.Salesforce.CreateSObject.Tests/UnitTests.cs b/Frends.Salesforce.CreateSObject/Frends.Salesforce.CreateSObject.Tests/UnitTests.cs index bafab97..9752132 100644 --- a/Frends.Salesforce.CreateSObject/Frends.Salesforce.CreateSObject.Tests/UnitTests.cs +++ b/Frends.Salesforce.CreateSObject/Frends.Salesforce.CreateSObject.Tests/UnitTests.cs @@ -61,7 +61,7 @@ public async Task TestCleanUp() { if (_result != null) { - for (var i = (_result.Count-1); i >= 0; i--) + for (var i = (_result.Count - 1); i >= 0; i--) { var temp = JsonConvert.SerializeObject(_result[i]); var obj = JsonConvert.DeserializeObject(temp); @@ -135,9 +135,10 @@ public async Task CreateCaseTest() var body = JsonConvert.SerializeObject(accountResult.Body); var accObj = JsonConvert.DeserializeObject(body); _result.Add(new { Type = "Account", Id = accObj.id }); - + // Creating a case. - var json = JsonSerializer.Serialize(new { + var json = JsonSerializer.Serialize(new + { AccountId = accObj.id.ToString(), Subject = "This is a test.", Description = "This is a test case for Frends.SalesForce.CreateSObject task.", diff --git a/Frends.Salesforce.DeleteSObject/Frends.Salesforce.DeleteSObject.Tests/UnitTests.cs b/Frends.Salesforce.DeleteSObject/Frends.Salesforce.DeleteSObject.Tests/UnitTests.cs index 4e04ec0..cd7196f 100644 --- a/Frends.Salesforce.DeleteSObject/Frends.Salesforce.DeleteSObject.Tests/UnitTests.cs +++ b/Frends.Salesforce.DeleteSObject/Frends.Salesforce.DeleteSObject.Tests/UnitTests.cs @@ -86,7 +86,7 @@ public async Task DeleteCaseTest() var accountId = await CreateSObject("Account", _userJson); // Creating a case. - var json = JsonSerializer.Serialize( new + var json = JsonSerializer.Serialize(new { AccountId = accountId, Subject = "This is a test.",