public void UserEnrollmentNegativeTestWithZeroLimit()
        {
            // Arrange
            bool             areSpacesAvailable = false;
            EventsController controller         = new EventsController();
            Event            @event             = new Event()
            {
                Attendees = new List <UserEvent>(),
                Limit     = 0
            };

            // Act
            areSpacesAvailable = controller.CheckAvailablePlaces(@event);

            // Assert
            Assert.IsTrue(areSpacesAvailable, "The method should return false, there are unlimited spaces available");
        }
        public void UserEnrollmentToEventPositiveTest()
        {
            // Arrange
            bool             areSpacesAvailable = false;
            EventsController controller         = new EventsController();
            Event            @event             = new Event()
            {
                Attendees = new List <UserEvent>(),
                Limit     = 10
            };

            // Act
            areSpacesAvailable = controller.CheckAvailablePlaces(@event);

            // Assert
            Assert.IsTrue(areSpacesAvailable, "The method should return true, because there are 10 spaces available");
        }