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