public WhenCreatingADomainObjectByType() { ActivatorDomainObjectActivator sut = GetSut(); domainObject = sut.Resolve(typeof(TestDomainObject), id) as TestDomainObject; }
public WhenCreatingADomainObjectGeneric() { ActivatorDomainObjectActivator sut = GetSut(); domainObject = sut.Resolve <TestDomainObject>(id); }
public void ItThroesWhenTypeIsNotADomainObject() { ActivatorDomainObjectActivator sut = GetSut(); Assert.Throws <ArgumentException>(() => sut.Resolve(typeof(WhenIvalidActivations), " ")); }
public void ItThroesWhenIdIsEmpty() { ActivatorDomainObjectActivator sut = GetSut(); Assert.Throws <ArgumentException>(() => sut.Resolve(typeof(TestDomainObject), " ")); }
public void ItThroesWhenIdIsEmptylGeneric() { ActivatorDomainObjectActivator sut = GetSut(); Assert.Throws <ArgumentException>(() => sut.Resolve <TestDomainObject>(" ")); }
public void ItThroesWhenTypeIsNull() { ActivatorDomainObjectActivator sut = GetSut(); Assert.Throws <ArgumentNullException>(() => sut.Resolve(null, "1213")); }