DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.Responses.Test/MockData.cs

31 lines
838 B
C#
Raw Normal View History

2023-08-15 22:52:30 -05:00

2023-10-04 17:45:51 -05:00
using DamageAssesment.Api.Responses.Models;
2023-08-15 22:52:30 -05:00
using System.Collections.Generic;
using System.Text;
2023-10-04 17:45:51 -05:00
namespace DamageAssesment.Api.Responses.Test
2023-08-15 22:52:30 -05:00
{
public class MockData
{
public static async Task<(bool, SurveyResponse, string)> getOkResponse(SurveyResponse data)
{
return (true, data, null);
}
public static async Task<(bool, dynamic, string)> getOkResponse()
{
return (true, new { }, null);
}
public static async Task<(bool, Models.SurveyResponse, string)> getResponse()
{
return (false, null, null);
}
public static async Task<Models.SurveyResponse> getSurveyResponseObject()
{
return new Models.SurveyResponse { EmployeeId = 1, LocationId = 1, SurveyId = 1, Id = 1 };
2023-08-15 22:52:30 -05:00
}
}
}