コード例 #1
0
        public void GetClientTest()
        {
            var client = new ClientsBo();
            var result = client.GetClient(3);

            Assert.IsTrue(result != null);
        }
コード例 #2
0
        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);
        }