public void ValidChangeStorySize_Should() { //Default Size: Large string storyName = "StoryNameShould"; string description = "MegaBadStory"; List <string> stepsToProduce = new List <string> { "steps" }; var story = new Story(storyName, description); database.Stories.Add(story); string newSize = "Medium"; List <string> parameters = new List <string> { storyName, newSize.ToString() }; ChangeStorySizeCommand command = new ChangeStorySizeCommand(parameters); command.Execute(); Assert.AreEqual(story.Size, Size.Medium); }
public void ChangeStoryInvalidParameters_Should() { string storyName = "StoryShould"; List <string> parameters = new List <string> { storyName }; ChangeStorySizeCommand command = new ChangeStorySizeCommand(parameters); command.Execute(); }
public void ThrowExeptionWhenCommandParametersAreLessThanItShould() { string storyName = "StoryNameShould"; string description = "MegaBadStory"; List <string> stepsToProduce = new List <string> { "steps" }; var story = new Story(storyName, description); database.Stories.Add(story); List <string> parameters = new List <string> { storyName }; ChangeStorySizeCommand command = new ChangeStorySizeCommand(parameters); command.Execute(); }
public void InputStoryNameIsNULL_Should() { string storyName = null; string description = "MegaBadStory"; List <string> stepsToProduce = new List <string> { "steps" }; var story = new Story(storyName, description); database.Stories.Add(story); List <string> parameters = new List <string> { storyName, description }; ChangeStorySizeCommand command = new ChangeStorySizeCommand(parameters); command.Execute(); }
public void InValidChangeStorySize_Should() { string storyName = "StoryNameShould"; string description = "MegaBadStory"; List <string> stepsToProduce = new List <string> { "steps" }; var story = new Story(storyName, description); database.Stories.Add(story); string newSize = "Invalid Priority"; List <string> parameters = new List <string> { storyName, newSize }; ChangeStorySizeCommand command = new ChangeStorySizeCommand(parameters); command.Execute(); }