[Test] public void GetInternalConfig_NotDecorated_Null()
        {
            //ARRANGE
            IConfiguration cfg = GetDefaultInstanceOf <NotInternalCfg>();
            //ACT
            InternalConfigurationAttribute result = cfg.GetInternalConfig();

            //ASSERT
            Assert.IsNull(result);
        }
        public void Read_Configuration_IfNotExistsCreate()
        {
            //ARRANGE
            Cleanup();
            var    att = new InternalConfigurationAttribute();
            string expectedFilename = $"./configs/{att.Foldername}/{att.FilePrefix}{nameof(InternalConfig)}.json";

            //ACT
            ConfigurationManager.Instance.Read <InternalConfig>();

            //ASSERT
            Assert.IsTrue(File.Exists(expectedFilename));
        }
        public void Write_InternalConfgiguration_ShouldBeInInternalFolder()
        {
            //ARRANGE
            InternalConfigurationAttribute att = new InternalConfigurationAttribute();
            string expectedFilename            = $"./configs/{att.Foldername}/{att.FilePrefix}{nameof(InternalConfig)}.json";

            InternalConfig cfg = new InternalConfig();

            //ACT
            if (!ConfigurationManager.Instance.Write(cfg))
            {
                Assert.Fail("Probably couldn't write to hdd");
            }

            //ASSERT
            Assert.IsTrue(File.Exists(expectedFilename));
        }