public TrackManagerShould(ProposalDataFixture fixture) { _fixture = fixture; _sut = new TrackManager(_fixture.ProposalList); _tracks = _sut.GenerateTracksFromProposals(); _track1 = _tracks[0]; _track2 = _tracks[1]; }
public ConferenceTrackResult CreateSchedule(List <Proposal> proposals) { if (proposals is null || proposals.Count == 0) { return(ConferenceTrackResult.CreateError("No proposals to allocate")); } List <Track> tracks = _trackManager.GenerateTracksFromProposals(); return(ConferenceTrackResult.CreateSuccess(tracks)); }