If you see the following error:
> NSubstitute.Exceptions.CouldNotSetReturnDueToNoLastCallException : Could not
find a call to return from.
You are likely trying to mock a method »
Peter Daugaard Rasmussen
on Testing , C#
17 May 2022
Sometimes you come across a class that you need to stub or mock but it does not
have an interface. The easiest way is of course »
Peter Daugaard Rasmussen
on Testing , C#
15 May 2022
This is an area of C# where there is a big "gotcha". Using the new keyword or
using the virtual + override keywords behave very »
Peter Daugaard Rasmussen
on C#
15 May 2022
I just finished writing my blog post number 300... it all started with the
following post [https://peterdaugaardrasmussen.com/2015/12/28/blog-start/] on
the »
If you would rather work with relative URLs than absolute URLs you can use the
BaseAddress
[https://docs.microsoft.com/en-us/dotnet/api/system.net. »
This might seem trivial, but since I got the question the other day I might as
well make a post about it. Using the HttpClient
[https: »
You can easily get a stock price in Google sheets using the GOOGLFINANCE function. A simple example would be if you want the current price of »
Before reading through endless posts on "best books for learning how to program" or the like, you should ask yourself what you want to »
There is no straightforward formula to get the percentage change for a stock X
days back in time. However using the "price" API from »