Update test case project for UserAccess and SurveyResponse modules. Renaming of SurveyResponses to Responses.

This commit is contained in:
Reginald CHERENFANT JASMIN
2023-09-26 15:22:26 -05:00
parent f6387fc371
commit 46520c7e62
42 changed files with 187 additions and 195 deletions

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface IAnswerServiceProvider
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface IAttachmentServiceProvider
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface IEmployeeServiceProvider
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface IHttpUtil
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface ILocationServiceProvider
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface IQuestionServiceProvider
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface IRegionServiceProvider
{

View File

@ -1,6 +1,6 @@
using DamageAssesment.Api.SurveyResponses.Models;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface ISurveyServiceProvider
{

View File

@ -1,23 +1,22 @@
using DamageAssesment.Api.SurveyResponses.Models;
using Microsoft.AspNetCore.Mvc;
using DamageAssesment.Api.Responses.Models;
namespace DamageAssesment.Api.SurveyResponses.Interfaces
namespace DamageAssesment.Api.Responses.Interfaces
{
public interface ISurveysResponse
{
Task<(bool IsSuccess, dynamic Answers, string ErrorMessage)> GetAnswersByRegionAsync(int surveyId, string token);
Task<(bool IsSuccess, dynamic Answers, string ErrorMessage)> GetAnswersByRegionAsync(int surveyId);
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PostSurveyResponseAsync(Models.SurveyResponse surveyResponse);
// Task<(bool IsSuccess,dynamic surveyResponses, string ErrorMessage)> GetSurveyResponseAsync(int responseId);
Task<(bool IsSuccess, dynamic surveyResponses, string ErrorMessage)> GetSurveyResponsesAsync(string token);
Task<(bool IsSuccess, dynamic surveyResponses, string ErrorMessage)> GetSurveyResponsesAsync();
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PutSurveyResponseAsync(int Id, Models.SurveyResponse surveyResponse);
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> DeleteSurveyResponseAsync(int Id);
Task<(bool IsSuccess, dynamic SurveyResponse, string ErrorMessage)> GetSurveyResponseByIdAsync(int responseId, string token);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesBySurveyAsync(int surveyId, string token);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesBySurveyAndLocationAsync(int surveyId, int locationId, string token);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesByMaintenanceCenterAsync(int surveyId, string token);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetResponsesByAnswerAsync(int surveyId, int questionId, string answer, string token);
Task<(bool IsSuccess, dynamic SurveyResponse, string ErrorMessage)> GetSurveyResponseByIdAsync(int responseId);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesBySurveyAsync(int surveyId);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesBySurveyAndLocationAsync(int surveyId, int locationId);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetSurveyResponsesByMaintenanceCenterAsync(int surveyId);
Task<(bool IsSuccess, dynamic SurveyResponses, string ErrorMessage)> GetResponsesByAnswerAsync(int surveyId, int questionId, string answer);
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PostSurveyAnswersAsync(Request request, string token);
Task<(bool IsSuccess, Models.SurveyResponse SurveyResponse, string ErrorMessage)> PostSurveyAnswersAsync(Request request);
}
}