Exemplo n.º 1
0
        public void GetObjectives_AllObjectivesWithoutCompleted_Success()
        {
            //Arrange
            var        bd  = "694d7a74-84c2-45c8-9f4e-c64b472398f2";
            Objectives obj = Create(bd);

            AddObjectiveToDb(ObjNew, bd);
            AddObjectiveToDb(ObjComplete, bd);

            //Act
            var list = obj.GetObjectives(UserIdA).ToList();

            //Assert
            Assert.Equal(1, list.Count);
            Assert.Equal(UserIdA, list[0].UserId);
            Assert.Equal(ObjectiveStatus.New, list[0].Status);
        }