AccidentalFish.ApplicationSupport.Core.Tests.Unit.Configuration.ApplicationConfigurationTests.GetEmbeddedConfigurationFile C# (CSharp) Method

GetEmbeddedConfigurationFile() private method

private GetEmbeddedConfigurationFile ( ) : System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument
        private XDocument GetEmbeddedConfigurationFile()
        {
            using (
                StreamReader streamReader =
                    new StreamReader(
                        GetType()
                            .Assembly.GetManifestResourceStream(
                                "AccidentalFish.ApplicationSupport.Core.Tests.Unit.Configuration.configuration.xml")))
            {
                string asString = streamReader.ReadToEnd();
                return XDocument.Parse(asString);
            }
        }