Пример #1
0
        public void WhenPublished_StatusIsPublished()
        {
            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);
            Assert.AreEqual(TalkStatus.Published, talk.Status);
        }