public void WhenApproved_StatusIsApproved() { var talk = new Talk(Guid.NewGuid(), DefaultCity, DateTime.Today.AddDays(1), DefaultSpeaker, "Test", "comment", "", ""); talk.Approve(DateTime.Now, DefaultAdministrator); Assert.AreEqual(TalkStatus.Approved, talk.Status); }
public void WhenReported_StatusIsReported() { var talk = new Talk(Guid.NewGuid(), DefaultCity, DateTime.Today.AddDays(1), DefaultSpeaker, "Test", "comment", "", ""); talk.Approve(DateTime.Now, DefaultAdministrator); talk.VerifyPlace(DateTime.Now, DefaultAdministrator, DefaultPlace); talk.Publish(DateTime.Now, DefaultAdministrator); talk.GiveReport(DateTime.Now, DefaultAdministrator, "It was cool"); Assert.AreEqual(TalkStatus.Reported, talk.Status); }