Skip to content

Instantly share code, notes, and snippets.

@kkozmic
Created January 20, 2010 20:15
Show Gist options
  • Save kkozmic/282201 to your computer and use it in GitHub Desktop.
Save kkozmic/282201 to your computer and use it in GitHub Desktop.
[Test]
public void ResolveAllAccountsForAssignableServices()
{
kernel.AddComponent("test", typeof(ICommon), typeof(CommonImpl2));
kernel.AddComponent("test2", typeof(ICommonSub1), typeof(CommonSub1Impl));
kernel.AddComponent("test3", typeof(ICommonSub1), typeof(CommonSub1Impl));
ICommon[] services = kernel.ResolveAll<ICommon>();
Assert.AreEqual(3, services.Length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment