Exemplo n.º 1
0
        public void given_valid_input_sprint_should_be_created()
        {
            var sprintId    = "sprintKey";
            var title       = "Title";
            var description = "description";
            var projectId   = "projectKey";
            var createdAt   = DateTime.Now;
            var startedAt   = DateTime.MinValue;
            var startDate   = DateTime.MinValue;
            var endDate     = DateTime.MaxValue;
            var endedAt     = DateTime.MaxValue;

            var sprint = new Sprint(sprintId, title, description, projectId, null, createdAt, startedAt, startDate, endDate, endedAt);

            sprint.Should().NotBeNull();
            sprint.Id.Should().Be(sprintId);
            sprint.Title.Should().Be(title);
            sprint.Description.Should().Be(description);
            sprint.ProjectId.Should().Be(projectId);
            sprint.CreatedAt.Should().Be(createdAt);
            sprint.StartedAt.Should().Be(startedAt);
            sprint.StartDate.Should().Be(startDate);
            sprint.EndDate.Should().Be(endDate);
            sprint.EndedAt.Should().Be(endedAt);
        }