public void Init()
        {
            var cb = new ConfigurationBuilder();

            cb.AddJsonFile(j =>
            {
                j.Path            = "appsettings.json";
                j.OnLoadException = e => { e.Ignore = false; };
            });
            Configuration = cb.Build();

            colorCodes = new Impl.ColorCodes(Configuration);
            calculator = new Impl.OhmValueCalulator(colorCodes);
        }
        public void Init()
        {
            var cb = new ConfigurationBuilder();

            cb.AddJsonFile(j =>
            {
                j.Path            = "appsettings.json";
                j.OnLoadException = e => { e.Ignore = false; };
            });
            Configuration = cb.Build();

            colorCodes = new Impl.ColorCodes(Configuration);
            Assert.IsNotNull(colorCodes);
        }
 public ColorsController(IColorCodes colorCodes)
 {
     this.colorCodes = colorCodes;
 }
Example #4
0
 public OhmValueCalulator(IColorCodes colorCodes)
 {
     this.colorCodes = colorCodes;
 }