-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
JobLeet.Tests/UnitTests/JobLeet.Api.Tests/Models/Common/V1/SkillModelTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |