forked from MDCPS/DamageAssessment_Backend
Db context changes for auto insertion
This commit is contained in:
@ -17,7 +17,7 @@ namespace DamageAssesment.Api.Attachments.Test
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
list.Add(new Attachments.Models.Attachment(i, Guid.NewGuid().ToString() + "@gmail.com")
|
||||
list.Add(new Attachments.Models.Attachment()
|
||||
{
|
||||
Id = i,
|
||||
AnswerId = i,
|
||||
@ -73,10 +73,10 @@ namespace DamageAssesment.Api.Attachments.Test
|
||||
return (false, list, null);
|
||||
}
|
||||
|
||||
public static async Task<List<Attachments.Db.Attachment>> getInputAttachmentData()
|
||||
public static async Task<List<Attachments.Models.Attachment>> getInputAttachmentData()
|
||||
{
|
||||
List<Attachments.Db.Attachment> Attachments=new List<Db.Attachment>();
|
||||
Attachments.Add(new Db.Attachment{ Id = 0, AnswerId = 10, ResponseId = 10, URI = "sample", IsDeleted = false,FileName="sample1" }) ;
|
||||
List<Attachments.Models.Attachment> Attachments=new List<Models.Attachment>();
|
||||
Attachments.Add(new Models.Attachment{ Id = 0, AnswerId = 10, ResponseId = 10, URI = "sample", IsDeleted = false,FileName="sample1" }) ;
|
||||
return Attachments;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user