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());
        }
示例#3
0
        public IHttpActionResult GetClient(long id)
        {
            var client = new ClientsBo().GetClient(id);

            if (client == null)
                return NotFound();

            return Ok(client);
        }
示例#4
0
        public IHttpActionResult DeleteClient(long id)
        {
            ClientDto client = new ClientsBo().DeleteClient(id);

            return Ok(client);
        }