public void Create_ValidCustomerPassed_ReturnedResponseHasCreatedItem() { var testCustomer = new Customer() { FirstName = "Melissa", LastName = "Quinn", DateOfBirth = DateTime.Parse("03/04/1988") }; var createdResponse = _controller.Create(testCustomer); Assert.IsType <CreatedAtActionResult>(createdResponse.Result); Assert.NotNull(_controller.GetByName("Melissa")); }