public void Constructor_ShouldRaiseException_WhenNameIsEmpty() { var guid = IdentifierGenerator.Guid; const string name = ""; Action course = () => _course.WithName(name).Build(); course.Should().ThrowExactly <CourseNameIsEmptyException>(); }