Skip to content

Commit

Permalink
Sonar scan fix applied
Browse files Browse the repository at this point in the history
  • Loading branch information
MathavanN committed Apr 26, 2024
1 parent 692ee93 commit 98899df
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace MyRestaurant.Business.Dtos.V1
{
public class CreateUnitOfMeasureDto : UnitOfMeasureDto
public class CreateUnitOfMeasureDto : IUnitOfMeasureDto
{
public required string Code { get; set; }
public string? Description { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace MyRestaurant.Business.Dtos.V1
{
public class EditUnitOfMeasureDto : UnitOfMeasureDto
public class EditUnitOfMeasureDto : IUnitOfMeasureDto
{
public required string Code { get; set; }
public string? Description { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
namespace MyRestaurant.Business.Dtos.V1
{
public class GetUnitOfMeasureDto : UnitOfMeasureDto
public class GetUnitOfMeasureDto : IUnitOfMeasureDto
{
public int Id { get; set; }
public required string Code { get; set; }
public string? Description { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace MyRestaurant.Business.Dtos.V1
{
public interface IUnitOfMeasureDto
{
string Code { get; set; }
string? Description { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace MyRestaurant.Business.Dtos.V1
{
public class UnitOfMeasureDto

public class UnitOfMeasureDto : IUnitOfMeasureDto
{
public string Code { get; set; } = default!;
public string? Description { get; set; }
Expand Down

0 comments on commit 98899df

Please sign in to comment.