Пример #1
0
        public static void RespondJsonFromFile(this MockedRequest source, string fileName)
        {
            var content = JsonFile.Read(fileName);

            source.RespondJson(content);
        }
Пример #2
0
        public static MockedRequest WithJsonContentFromFile(this MockedRequest source, string fileName)
        {
            var content = JsonFile.Read(fileName);

            return(source.WithJsonContent(content));
        }