Esempio n. 1
0
        public void IsValidTest()
        {
            TransferClient           client       = new TransferClient();
            Mock <IAccountValidator> moqValidator = new Mock <IAccountValidator>();

            client.Validator = moqValidator.Object;
            moqValidator.Setup(x => x.IsValid()).Returns(true);
            Assert.True(client.IsValid());
        }