6 writes to ContactId
BasicWebSite (4)
ContactsRepository.cs (1)
19
contact.
ContactId
= _contacts.Count + 1;
Controllers\ContactApiController.cs (3)
60
ContactId
= id,
88
=> repository.GetContact(id) ?? new Contact() {
ContactId
= id };
137
=> Results.Ok(new Contact() {
ContactId
= id });
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
ApiBehaviorTest.cs (2)
148
ContactId
= 13,
168
ContactId
= 13,
12 references to ContactId
BasicWebSite (3)
ContactsRepository.cs (1)
14
return _contacts.FirstOrDefault(f => f.
ContactId
== id);
Controllers\ContactApiController.cs (2)
37
return CreatedAtAction(nameof(Get), new { id = contact.
ContactId
}, contact);
45
return CreatedAtAction(nameof(Get), new { id = contact.
ContactId
}, contact);
Microsoft.AspNetCore.Mvc.FunctionalTests (9)
ApiBehaviorTest.cs (8)
158
Assert.Equal(input.
ContactId
, result.
ContactId
);
179
Assert.Equal(input.
ContactId
, result.ContactInfo.
ContactId
);
196
Assert.Equal(id, result.
ContactId
);
212
Assert.Equal(id, result.
ContactId
);
233
Assert.Equal(id, result.
ContactId
);
254
Assert.Equal(id, result.
ContactId
);
HttpActionResultTests.cs (1)
44
Assert.Equal(id, result.
ContactId
);