EnrolIn() public method

public EnrolIn ( Subject subject ) : void
subject Subject
return void
        public void SetUp()
        {
            _eventBroker = Substitute.For<IEventBroker>();
            DomainEvents.SetEventBrokerStrategy(_eventBroker);

            _fred = new Student();
            _law = new Subject();

            // Act
            _fred.EnrolIn(_law);
        }
        public void TheyShouldNotBePermitted()
        {
            var fred = new Student();
            var law = new Subject
            {
                MaxStudents = 0,
            };

            fred.EnrolIn(law);

            Assert.Inconclusive("This is our mission for tomorrow morning. We need to add a non-default constructor to our entity so that we can reliably create instances in a valid state.");
        }