public void Initialize() { this.competition = CompetitionFactory.Create("Flat", "What is more important?"); this.competition.AddOption(new Option("Big Balcony")); this.competition.AddOption(new Option("Modern Kitchen")); this.competition.Run(); this.competitionRepository = new Mock<IRepository<Competition>>(); }
internal CompetitionDto(Competition original) { this.Id = original.Id; this.Name = original.Name; this.Subject = original.Subject; this.AutoInferenceEnabled = original.AutoInferenceEnabled; this.State = original.State.Type.ToString(); }
public static Competition Create(string name, string subject) { var competition = new Competition { Name = name, Subject = subject, State = new CreatedState() }; return competition; }