public void Create_SignatureWithValidData_OkResult() { var controller = new SignatureController(_logger, _signatureService); var signature = new Entities.Models.Signature { Id = new Guid("e47c0cb5-05b6-437d-b40f-f2c5b5a08385"), Name = "Signature 6", Description = "Signature 6 description" }; var data = controller.CreateSignature(signature); Assert.IsType <CreatedAtRouteResult>(data as CreatedAtRouteResult); }
public void Delete_ExistingSignature_OkResult() { var controller = new SignatureController(_logger, _signatureService); var signature = new Entities.Models.Signature { Id = new Guid("f7afefa9-2cc6-4ea9-901d-d99e227a12de"), Name = "Signature", Description = "" }; var data = controller.CreateSignature(signature); Assert.IsType <CreatedAtRouteResult>(data as CreatedAtRouteResult); var deleteResult = controller.DeleteSignature(signature.Id); Assert.IsType <NoContentResult>(deleteResult); }