Click here to Skip to main content
15,907,329 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Capturing a still from a RTSP stream Pin
Richard MacCutchan19-Sep-23 1:52
mveRichard MacCutchan19-Sep-23 1:52 
AnswerRe: Capturing a still from a RTSP stream Pin
jschell19-Sep-23 5:43
jschell19-Sep-23 5:43 
QuestionVB.NET Framework 7, how to multithread on existing user control? Pin
Member 1415594910-Sep-23 7:06
Member 1415594910-Sep-23 7:06 
AnswerRe: VB.NET Framework 7, how to multithread on existing user control? Pin
Dave Kreskowiak10-Sep-23 11:43
mveDave Kreskowiak10-Sep-23 11:43 
AnswerRe: VB.NET Framework 7, how to multithread on existing user control? Pin
Gerry Schmitz10-Sep-23 16:05
mveGerry Schmitz10-Sep-23 16:05 
Questionvb.net 2022 webview2 getting current url. Pin
steve20152-Sep-23 10:16
steve20152-Sep-23 10:16 
AnswerRe: vb.net 2022 webview2 getting current url. Pin
Dave Kreskowiak2-Sep-23 10:50
mveDave Kreskowiak2-Sep-23 10:50 
GeneralRe: vb.net 2022 webview2 getting current url. Pin
steve20153-Sep-23 4:08
steve20153-Sep-23 4:08 
QuestionHelp! My .NET to MySQL application suddenly stopped working... Pin
erikbrannlund25-Aug-23 0:07
professionalerikbrannlund25-Aug-23 0:07 
AnswerRe: Help! My .NET to MySQL application suddenly stopped working... Pin
Dave Kreskowiak25-Aug-23 3:39
mveDave Kreskowiak25-Aug-23 3:39 
GeneralRe: Help! My .NET to MySQL application suddenly stopped working... Pin
erikbrannlund25-Aug-23 4:24
professionalerikbrannlund25-Aug-23 4:24 
GeneralRe: Help! My .NET to MySQL application suddenly stopped working... Pin
Gerry Schmitz25-Aug-23 4:30
mveGerry Schmitz25-Aug-23 4:30 
GeneralRe: Help! My .NET to MySQL application suddenly stopped working... Pin
jkirkerx24-Oct-23 11:47
professionaljkirkerx24-Oct-23 11:47 
QuestionMessage Closed Pin
17-Aug-23 0:11
YASH PATEL 202317-Aug-23 0:11 
QuestionRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard MacCutchan17-Aug-23 0:17
mveRichard MacCutchan17-Aug-23 0:17 
AnswerRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard Deeming17-Aug-23 1:25
mveRichard Deeming17-Aug-23 1:25 
GeneralRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard MacCutchan17-Aug-23 1:35
mveRichard MacCutchan17-Aug-23 1:35 
AnswerRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Dave Kreskowiak17-Aug-23 3:13
mveDave Kreskowiak17-Aug-23 3:13 
GeneralRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
Richard MacCutchan17-Aug-23 3:23
mveRichard MacCutchan17-Aug-23 3:23 
AnswerRe: How can Power BI development services assist businesses in transforming raw data into meaningful insights and visualizations? Pin
jschell17-Aug-23 5:37
jschell17-Aug-23 5:37 
QuestionHow would you test a minimal api that uses a dictionary for saving entities? Pin
Nikol Dimitrova 202314-Aug-23 13:13
Nikol Dimitrova 202314-Aug-23 13:13 
AnswerRe: How would you test a minimal api that uses a dictionary for saving entities? Pin
jschell15-Aug-23 4:36
jschell15-Aug-23 4:36 
You might want to research 'code coverage' tools. Those collect stats during your test to make sure that you have tested all code paths.

Also note that you should not be actually testing the dictionary. But rather the usage of that. But perhaps that is what you mean.

Nikol Dimitrova 2023 wrote:
Is there a way for me to access the _students dictionary from the Program.cs file?


Presumably to test that the state is as excepted. Yes there are several.
1. Just publicly expose the dictionary (getter)
2. You can use reflection to get to the internals of a class.

If you use the second then you should document with a comment that it only public for testing.

For a small case like this I would use the first (getter). For larger libraries I would use reflection because the idiom is clearer with more usage and because more chance of public methods getting misused over time.
GeneralRe: How would you test a minimal api that uses a dictionary for saving entities? Pin
Nikol Dimitrova 202315-Aug-23 7:46
Nikol Dimitrova 202315-Aug-23 7:46 
AnswerRe: How would you test a minimal api that uses a dictionary for saving entities? Pin
Gerry Schmitz15-Aug-23 4:37
mveGerry Schmitz15-Aug-23 4:37 
QuestionCreating a print event handler in a class, and calling it from my print dialog, I need human help on this Pin
jkirkerx27-Jul-23 9:08
professionaljkirkerx27-Jul-23 9:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.