using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DamageAssesment.Api.Employees.Test { public class MockData { public static async Task<(bool, IEnumerable, string)> getOkResponse() { IEnumerable list = new List(); for (int i = 0; i < 10; i++) { list.Append(new Employees.Models.Employee { Id = "Emp"+i, Name = "Emoployee"+i, Email = "abc"+i+"@gmail.com", OfficePhoneNumber = "12345678", BirthDate = DateTime.Now.AddYears(-18-i), IsActive = true, PreferredLanguage = "en" }); } return (true, list, null); } public static async Task<(bool, Employees.Models.Employee, string)> getOkResponse(string Id) { var Employees = await getOkResponse(); var Employee = Employees.Item2.FirstOrDefault(s => s.Id == Id); return (true, Employee, null); } public static async Task<(bool, Employees.Models.Employee, string)> getBadRequestResponse() { return (false, null, "Bad Request"); } public static async Task<(bool, Employees.Models.Employee, string)> getNotFoundResponse() { return (false, null, "Not Found"); } public static async Task<(bool, IEnumerable, string)> getNoContentResponse() { IEnumerable list = new List(); return (false, list, null); } public static async Task getInputEmployeeData() { return new Employees.Db.Employee { Id = "Emp1", Name = "ABC1", Email = "abc1@gmail.com", OfficePhoneNumber = "12345678", BirthDate = DateTime.Now.AddYears(-18), IsActive = true, PreferredLanguage = "en" }; } } }