public void CreateStory_Should_ReturnCorrectInstance() { //Arrange var factory = new WimFactory(); var title = "ExampleStory"; var mockPerson = new Mock <IMember>(); var descritpion = "Example Description"; //Act var sut = factory.CreateStory(title, descritpion, Priority.High, Size.Large, StoryStatus.InProgress, mockPerson.Object); //Assert Assert.IsInstanceOfType(sut, typeof(Story)); }
public void Constructor_Should_AssignsCorrectAssignee() { //Arrange var factory = new WimFactory(); var storyTitle = "StoryTitleToCheck"; var storyDescription = "This is the first story description"; var storyPriority = Priority.High; var storySize = Size.Large; var storyStatus = StoryStatus.NotDone; var MockStoryAssignee = new Mock <IMember>(); //Act var sut = factory.CreateStory(storyTitle, storyDescription, storyPriority, storySize, storyStatus, MockStoryAssignee.Object); //Assert Assert.AreEqual(sut.Assignee, MockStoryAssignee.Object); }