public void GetClientTest() { var client = new ClientsBo(); var result = client.GetClient(3); Assert.IsTrue(result != null); }
public void GetClientsTest() { var clientBo = new ClientsBo(); var result = clientBo.GetClients(); Assert.IsTrue(result != null); Assert.IsTrue(result.Any()); }
public IHttpActionResult GetClient(long id) { var client = new ClientsBo().GetClient(id); if (client == null) return NotFound(); return Ok(client); }
public IHttpActionResult DeleteClient(long id) { ClientDto client = new ClientsBo().DeleteClient(id); return Ok(client); }