Code Smells from Model
continuous-integration/drone/push Build is passing Details

master
tomivt 2 months ago
parent 6b3a7283b5
commit 6aff34e983

@ -12,13 +12,12 @@ namespace WF_WebAdmin.Model
{
public static partial class LoggerSaveStub
{
public static void Log(ILogger logs,LogLevel logLevel,string message)
public static void Log(ILogger logs, LogLevel logLevel, string message, params object[] args)
{
ILogsService logsService = new LogsServiceStub();
logsService.addLogs( new Logs( logLevel , message ) );
logsService.addLogs(new Logs(logLevel, string.Format(message, args)));
logs.Log(logLevel, message );
logs.Log(logLevel, message, args);
}
}
}

@ -12,19 +12,6 @@ namespace WF_WebAdmin.Model
public bool IsValid { get; set; }
public string UserProposition { get; set; }
public Quiz(int id, string question, string answerA, string answerB, string answerC, string answerD, string cAnswer, bool isValid, string userProposition)
{
Id = id;
Question = question;
AnswerA = answerA;
AnswerB = answerB;
AnswerC = answerC;
AnswerD = answerD;
CAnswer = cAnswer;
IsValid = isValid;
UserProposition = userProposition;
}
public Quiz(int id, string question, string answerA, string answerB, string answerC, string answerD, string cAnswer)
{
Id = id;
@ -38,7 +25,5 @@ namespace WF_WebAdmin.Model
UserProposition = "Admin";
}
public Quiz() {}
}
}

@ -4,8 +4,8 @@
{
public int Id { get; set; }
public string? Image { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public string? Name { get; set; }
public string? Email { get; set; }
public DateTime DateCreation { get; set; }
public Boolean IsAdmin { get; set; }

@ -5,9 +5,9 @@ namespace WF_WebAdmin.Model
{
public int Id { get; set; }
public string? Image { get; set; }
public string Name { get; set;}
public string? Name { get; set;}
public Boolean IsAdmin { get; set; }
public string Mdp { get; set; }
public string? Mdp { get; set; }
public UserLogin(int id,string image, string name, bool isAdmin, string mdp)
{
Id = id;

Loading…
Cancel
Save