private static Paye AssertPayeScheme(AddPayeToAccountCommand command)
 {
     return(It.Is <Paye>(
                c => c.AccessToken.Equals(command.AccessToken) &&
                c.RefreshToken.Equals(command.RefreshToken) &&
                c.EmpRef.Equals(command.Empref) &&
                c.AccountId.Equals(ExpectedAccountId) &&
                c.RefName.Equals(ExpectedPayeName)
                ));
 }
        public static AddPayeToAccountCommand Create(string externalUserId = "", string hashedId = "JDJFAF123")
        {
            var command = new AddPayeToAccountCommand
            {
                HashedAccountId = hashedId,
                ExternalUserId  = string.IsNullOrEmpty(externalUserId) ? Guid.NewGuid().ToString() : externalUserId,
                Empref          = "123/ABC",
                RefreshToken    = "123GGFFDD",
                AccessToken     = "123GGFFDD",
                EmprefName      = "Paye Scheme 1"
            };

            return(command);
        }