public async void ValidatorIsPatched()
            {
                BankValidator expectedBankValidator = new BankValidator
                {
                    AccountNumber         = "ad1f8845c6a1abb6011a2a434a079a087c460657aad54329a84b406dce8bf314",
                    IpAddress             = "192.168.1.74",
                    NodeIdentifier        = "3afdf37573f1a511def0bd85553404b7091a76bcd79cdcebba1310527b167521",
                    Port                  = "8000",
                    Protocol              = "http",
                    Version               = "v1.0",
                    DefaultTransactionFee = 4,
                    RootAccountFile       = "https://gist.githubusercontent.com/buckyroberts/519b5cb82a0a5b5d4ae8a2175b722520/raw/9237deb449e27cab93cb89ea3346ecdfc61fe9ea/0.json",
                    RootAccountFileHash   = "4694e1ee1dcfd8ee5f989e59ae40a9f751812bf5ca52aca2766b322c4060672b",
                    SeedBlockIdentifier   = "",
                    DailyConfirmationRate = "0",
                    Trust                 = "100.00"
                };

                var request = new RequestModel
                {
                    NodeIdentifier = expectedBankValidator.NodeIdentifier,
                    Signature      = "b9106148b9c6d445f6a5fe7bb54b552ac2ff639cb72e2af70f7565904120dbb2040987c6cad559d7aa3b507c8d475af9291e4faee4930b324996c7a3c0696805",
                    Message        = new Message
                    {
                        Trust = 76.28
                    }
                };

                var service = BuildBankValidatorMock(expectedBankValidator, "76.28");

                var validator = await service.PatchValidatorAsync(expectedBankValidator.NodeIdentifier, request);


                Assert.Equal(validator.Trust, request.Message.Trust.ToString());
            }
        public static IValidatorService BuildBankValidatorMock(BankValidator expectedResponseValidator, string newTrust)
        {
            var requestSender = new Mock <IHttpRequestSender>();

            var patchResponse = new HttpResponseMessage(System.Net.HttpStatusCode.OK);

            expectedResponseValidator.Trust = newTrust;
            patchResponse.Content           = new StringContent(JsonConvert.SerializeObject(expectedResponseValidator), Encoding.UTF8, "application/json");
            requestSender
            .Setup(x => x.PatchAsync(It.IsAny <string>(), It.IsAny <HttpContent>()))
            .Returns(Task.FromResult(patchResponse));

            var validatorService = new ValidatorService(requestSender.Object);

            return(validatorService);
        }