public void Delete_ValidApikey_ResultIn200()
        {
            var mock       = CreateMock();
            var controller = new CustomerApiKeyController(() => mock.Object)
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };

            var ret = controller.Delete(1);

            Assert.AreEqual(200, (int)ret.StatusCode);
        }
        public void Delete_Exception_ResultIn500()
        {
            var mock = CreateMock();

            mock.Setup(x => x.DeleteCustomerApiKey(1)).Throws <Exception>();
            var controller = new CustomerApiKeyController(() => mock.Object)
            {
                Request       = new HttpRequestMessage(),
                Configuration = new HttpConfiguration()
            };
            var ret = controller.Delete(1);

            Assert.AreEqual(500, (int)ret.StatusCode);
        }