public void PostProcessing(IGlobalContext context) { var numConfig = context.Resolve <NumberingConfig>(); context.AddCss( CSS(numConfig.NumberingContainerCls, numConfig.NumberingNumberCls)); }
public void InjectCss(IGlobalContext context) { var cssRegistrator = context.Resolve <ICssRegistrator>(); var data = new CssData(); var sb = new StringBuilder(); cssRegistrator.InsertCss(data); data.RenderInto(sb); context.AddCss(BaseCss); context.AddCss(sb.ToString()); }
public void Resolve_Test() { var t = new Test(); _globalContext.Resolve <Test>().Returns(t); _globalContext.ClearReceivedCalls(); var t2 = _instance.Resolve <Test>(); Assert.AreSame(t, t2); _globalContext.Received(1).Resolve <Test>(); }
public T Resolve <T>() => _globalContext.Resolve <T>();