public void GetById_ExistingId_OkResult()
        {
            var controller  = new SignatureController(_logger, _signatureService);
            var signatureId = new Guid("EED7F976-58B7-4C05-E3E4-08D6F9F0FC2C");
            var data        = controller.GetSignatureById(signatureId);

            Assert.IsType <OkObjectResult>(data);
        }
        public void GetById_NoExistingId_NotFoundResult()
        {
            var controller  = new SignatureController(_logger, _signatureService);
            var signatureId = new Guid("A9253E48-A1AB-4F83-A1A7-0E14D0F12345");
            var data        = controller.GetSignatureById(signatureId);

            Assert.IsType <NotFoundResult>(data);
        }
        public void Update_SignatureWithValidData_OkResult()
        {
            var controller        = new SignatureController(_logger, _signatureService);
            var signatureId       = new Guid("EED7F976-58B7-4C05-E3E4-08D6F9F0FC2C");
            var existingSignature = controller.GetSignatureById(signatureId);

            Assert.IsType <OkObjectResult>(existingSignature);


            var signature = (existingSignature as ObjectResult).Value as Entities.Models.Signature;

            signature.Name = "Signature Modified";

            var updatedData = controller.UpdateSignature(signatureId, signature);

            Assert.IsType <NoContentResult>(updatedData);
        }
 public void GetById_NullId_BadRequestResult()
 {
     var  controller  = new SignatureController(_logger, _signatureService);
     Guid signatureId = Guid.Empty;
     var  data        = controller.GetSignatureById(signatureId);
 }