public void WhenSetOwnership_ThenOwnedAndManaged() { var owner = new ClinicOwner("anownerid"); this.entity.SetOwnership(owner); this.entity.Owner.Should().Be(new ClinicOwner(owner.OwnerId)); this.entity.Managers.Managers.Single().Should().Be("anownerid".ToIdentifier()); this.entity.Events[1].Should().BeOfType <Events.Clinic.OwnershipChanged>(); }
public void WhenConstructed_ThenOwnerIdAssigned() { var owner = new ClinicOwner("anownerid"); owner.OwnerId.Should().Be("anownerid"); }