public async Task PutToggleAsync_BadRequest()
        {
            var mock = new Mock <IToggleBusinessManager>();

            mock.Setup(toggleBusinessManager => toggleBusinessManager.PutToggleAsync(null));

            using (var controller = new ToggleController(mock.Object))
            {
                var responseActionResult = await controller.PutToggleAsync(null) as BadRequestResult;

                Assert.IsNotNull(responseActionResult);
            }
        }
        public async Task PutToggleAsync_InternalServerError()
        {
            var toogleDto = ToggleFakeData.GetToggleDto2();
            var id        = Guid.NewGuid().ToString();
            var mock      = new Mock <IToggleBusinessManager>();

            mock.Setup(toggleBusinessManager => toggleBusinessManager.PutToggleAsync(toogleDto)).Throws(new NullReferenceException());

            using (var controller = new ToggleController(mock.Object))
            {
                var responseActionResult = await controller.PutToggleAsync(toogleDto) as ExceptionResult;

                Assert.IsNotNull(responseActionResult);
                Assert.IsTrue(responseActionResult.Exception is NullReferenceException);
            }
        }