Skip to content

Commit

Permalink
Formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlhagerm committed Oct 13, 2023
1 parent ec0b86a commit 37304bb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public async Task<SentimentDetails> FunctionHandler(SourceTextDetails extractTex
Logger.LogInformation(result);
return result;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ public ExtractTextFunction(IAmazonTextract textractClient)
return extractResponse;

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public async Task<string> SynthesizeSpeechFromText(AudioSourceDestinationDetails
};

await transfer.UploadAsync(uploadStreamRequest);

return audioKey;
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

using FsaServices.Services;
using Moq;
using Amazon.Comprehend;
using Amazon.Comprehend.Model;
using FsaServices.Services;
using Moq;

namespace FsaServicesTest;

Expand All @@ -24,7 +24,7 @@ public async Task DetectSentiment_ShouldReturnSentimentDetails()
var mockService = new Mock<IAmazonComprehend>();
var dominantLanguageResponse = new DetectDominantLanguageResponse()
{
Languages = new List<DominantLanguage>(){new(){LanguageCode = "en"}}
Languages = new List<DominantLanguage>() { new() { LanguageCode = "en" } }
};

_ = mockService.Setup(ms =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task TranslateEmptyString_ShouldThrowException()
// Act and Assert.
await Assert.ThrowsAsync<InvalidOperationException>(async () =>
{
await service.TranslateToEnglish("", "fr");
await service.TranslateToEnglish("", "fr");
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ public async Task<string> FunctionHandler(AudioSourceDestinationDetails input, I
Logger.LogInformation(synthesizeResponse);
return synthesizeResponse;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public async Task<TranslatedTextDetails> FunctionHandler(TextWithSourceLanguage
Logger.LogInformation(translatedText);
return new TranslatedTextDetails() { translated_text = translatedText };
}
}
}

0 comments on commit 37304bb

Please sign in to comment.