Skip to content

Commit

Permalink
add: model and test for skillsModel
Browse files Browse the repository at this point in the history
  • Loading branch information
nixhantb committed Dec 12, 2023
1 parent 7b73058 commit ff95538
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using JobLeet.WebApi.JobLeet.Api.Models.Common.V1;
using System.ComponentModel.DataAnnotations;

namespace UnitTests.JobLeet.Api.Tests.Models.Common.V1
{
public class SkillModelTest
{
[Fact]
public void SkillModel_Validation_Success()
{
// Arrange
var skillModel = new SkillModel
{
Title = "Programming",
Description = "Excellent coding skills."
};


Assert.NotNull(skillModel);
}
}
}
4 changes: 3 additions & 1 deletion JobLeet.WebApi/JobLeet.Api/Models/Common/V1/SkillModel.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace JobLeet.WebApi.JobLeet.Api.Models.Common.V1
{
public class SkillModel
public class SkillModel : BaseModel
{
public string Title { get; set; }
public string Description { get; set; }
}
}

0 comments on commit ff95538

Please sign in to comment.