illunix
illunix
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
I didn’t know that problem like this can happen
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
That’s sounds complex
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
🤔
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
I just don’t understand the part why 80% work if 20% does not work, if 20% fail why not 100%
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
@mtreit
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
I mean for example that 80% requests are successful but 20% was unsuccessful as you said, but why this 20% was unsuccessful and how did you solved that
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
I didn’t even know it’s possible
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
Mhm, but for example how do you solve problem like this if logic is correct, I don’t understand that part
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
So should I create test like this powershell script for every request in my api that I have? Also I don’t understand how is it possible that 80% requests that was successful but 20% not @mtreit
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
I like your opinion on testing that’s why I ask
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
And external api calls
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
Okey so what things in normal Api should I test because I don’t see anything, 99% of all my stuff that I write is crud
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
Clean code isn’t clean
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
That’s how I worked all the time
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
Without writing tests
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
The test types that you mention I didn’t know they exist @mtreit
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
So I should not write e2e test for every request in my api
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
Is about for example testing Is request to my api was successfull?
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
What is about
81 replies
CC#
Created by illunix on 7/21/2023 in #help
❔ How to mock HttpClient that is automatically applied in class without IHttpClientFactory
But what is that e2e tests
81 replies