I am trying to load a json file while mocking an api for testing purposes in a test project.The mock will be loading the json.
I am currently using File.ReadAllText
and i have tried the following
System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory.ToString(), "bank_response.json")
System.IO.Path.GetFullPath(Directory.GetCurrentDirectory() + @"\bank_response.json");
I am getting either the path to bin or null.