public void append_host_imports_bottle_references_but_does_not_duplicate() { var host1 = new HostManifest("h1"); host1.RegisterBottle(new BottleReference("b1")); var host2 = new HostManifest("h2"); host2.RegisterBottle(new BottleReference("b1")); host1.Append(host2); host1.BottleReferences.ShouldHaveTheSameElementsAs(new BottleReference("b1")); }
public void append_host_respects_setting_order() { var host1 = new HostManifest("h1"); host1.RegisterSettings(data4); var host2 = new HostManifest("h2"); host2.RegisterSettings(data5); host1.Append(host2); host1.CreateDiagnosticReport().First(x => x.Key == "OneDirective.Age").Value.ShouldEqual("7"); }
public void append_host_respects_setting_order() { var host1 = new HostManifest("h1"); host1.RegisterSettings(data4); var host2 = new HostManifest("h2"); host2.RegisterSettings(data5); host1.Append(host2); host1.GetDirective<OneDirective>().Age.ShouldEqual(7); }
public void append_host_respects_setting_order() { var host1 = new HostManifest("h1"); host1.RegisterSettings(data4); var host2 = new HostManifest("h2"); host2.RegisterSettings(data5); host1.Append(host2); host1.GetDirective <OneDirective>().Age.ShouldEqual(7); }