public InstanceDTO(InstanceRef model) { name = model.Name; lifecycle = model.Lifecycle.GetType().Name.Replace("Lifecycle", ""); returnedType = model.ReturnedType.GetFullName(); description = model.Description; hasBeenCreated = model.ObjectHasBeenCreated(); pluginType = model.PluginType.GetFullName(); Guid ignored; if (Guid.TryParse(name, out ignored)) { name = "(guid)"; } key = "{0}/{1}".ToFormat(model.PluginType.GetFullName(), model.Name); }
public void has_relays_from_IFamily() { familyMock.HasBeenCreated(instance).Returns(true); instanceRef.ObjectHasBeenCreated().ShouldBeTrue(); }
public void has_relays_from_IFamily() { family.Stub(x => x.HasBeenCreated(instance)).Return(true); instanceRef.ObjectHasBeenCreated().ShouldBeTrue(); }