public void TestFor_DeleteWorkOutCategory()
        {
            WorkOutCategory ObjWorkOutCategory = new WorkOutCategory()
            {
                CategoryId   = 1,
                CategoryName = "aaa",
            };
            var result = _UserService.DeleteWorkOutCategory(ObjWorkOutCategory.CategoryId);

            Assert.True(result);
        }
        public void TestFor_AddWorkOutCategory()
        {
            WorkOutCategory ObjWorkOutCategory = new WorkOutCategory()
            {
                CategoryId   = 1,
                CategoryName = "aaa",
            };

            List <WorkOutCategory> WorkCategoryList = new List <WorkOutCategory>();

            WorkCategoryList.Add(ObjWorkOutCategory);
            var result = _UserService.AddWorkOutCategory(WorkCategoryList);

            Assert.True(result);
        }
        public void ExceptionTestFor_WorkOutCategoryAlreadyExistException()
        {
            //Arrange
            WorkOutCategory workOutCategory = new WorkOutCategory()
            {
                CategoryId   = 10,
                CategoryName = "Jogging"
            };

            List <WorkOutCategory> workOutCategoryList = new List <WorkOutCategory>();

            workOutCategoryList.Add(workOutCategory);

            //Action
            //Assert
            var ex = Assert.Throws <WorkOutCategoryAlreadyExistException>(() => _UserService.AddWorkOutCategory(workOutCategoryList));

            Assert.Equal("WorkOut Category Already exist", ex.Messages);
        }
Example #4
0
        public WorkOutCategory EditWorkOutCategory(long categoryId)
        {
            WorkOutCategory category = new WorkOutCategory();

            return(category);
        }
Example #5
0
 public bool AddWorkOutCategory(WorkOutCategory workOut)
 {
     return(true);
 }