public class ExternalService(HttpClient httpClient)
{
public async Task<string> GetAsync()
{
var response = await httpClient.GetAsync("/ping");
response.EnsureSuccessStatusCode();
return await response.Content.ReadAsStringAsync();
}
}
public class ExternalServiceTests
{
[Fact]
public async Task GetAsync_WhenCalled_ReturnsString()
{
// Arrange
var fakeServer = WireMockServer.Start();
fakeServer
.Given(Request.Create().WithPath("/ping").UsingGet())
.RespondWith(Response.Create()
.WithStatusCode(200)
.WithBody("pong")
);
var fakeClient = fakeServer.CreateClient();
var externalService = new ExternalService(fakeClient);
// Act
var response = await externalService.GetAsync();
// Assert
response.Should().Be("pong");
}
}
AmpereChain: The fastest D-QBFT blockchain with AMPERE crypto. Pioneering EVM public chain with privacy nodes. Unmatched speed, efficiency, privacy, and TPS. #DecentralizedTechDear Community,I have received lot of DM regarding vesting time of migration.Considering queries and objection we have decided to go with voting for merging decision1. Project is registered and they have shared formation, approval certificate2. There is one way(Either go with them or reject them). Once we opt for rejection we are completely out3. Our community must have to understand they are yet in presale and asking all tokens to release without reaching certain market cap will crash project. I had discussion with him for early release and he highlighted it. Many of you have intention to exit but none of project owner will allow such crash4. I asked same questions to seed funding users few days back and they opted to stay with them5. Dom and Moh already left project with no backing to support itI have clearly mentioned positive as well as negative side with our current situation.Requesting everyone to vote for next 3 days which will help us to go forward or return back to previous steps leaving them.
story for devops engineers and lovers of migration processes Recommend the article on Medium "Application migration from Docker Compose to Kubernetes". The project is a DAM system. Lots of technical details, reasons and conclusions inside.
In the fusion of technology and creativity, limitless innovation blossoms.Portal: https://t.me/NomotaAlMIGRATION IS LIVE NOMOTA AI V2remember to migrate your old token via our dApp below1. scroll down and select migrate 2. connect wallet and confirm signature request button that pop up3. this will move your token from the old contract to the new contract address4. once signature request is confirmed successfully refresh wallet your V2 token will be there
The right package for interview help to switch to Product Based Companies led by Tech Professionals. We provide OAs and interview experience, and post it at thejoboverflow.com, and notify in the TGVisit the Pinned messages for our Community Guidelines ?I don't know if there is a simpler way, but I know a way of changing profile picture. TJO profile picture is linked to gravatar. 1.So go to gravatar. Com 2.Sign in with email you registered tjo with3.change profile picture at gravatar. That's all!Thanks for showing such mad excitement! We've now got some exciting news to share. The first-ever Masterclass by AlgoUniversity is all set to take place. Join us in this Resume Crafting session by none other than Manas Sir himself!Yep, you heard it right! Manas Sir is ready for spilling all his insider secrets on how he nailed his resume that made him travel to not one, not two, but three different countries ✈️. It's an exclusive opportunity to learn from the best!
welcome to Tech Tuber Rana!? Notcoin now has its own smart contract! Everything is ready, we are just waiting for the official launch...Notcoin utilizes a standard TON jetton smart contract (view on GitHub) (https://github.com/OpenBuilders/notcoin-contract) with some special features:• The jetton administrator can modify the code of the jetton-minter and its full data. This means that Sasha can change the code at any moment: if he wants, he can ban you, if he wants, he can take away coins, if he wants, he can create new coins.Admin Id @jm_nobita
The Binary Holdings, together with its subsidiaries, engages in the digital social, digital tech & products, and digital financial service businesses in Southeast Asia, Middle East, Africa, rest of Asia, and internationally.https://www.thebinaryholdings.