public void VeriyThatCDPVersionIsSet()
        {
            var testDal     = new TestDal();
            var credentials = new Credentials("John", "Doe", this.uri);

            this.session = new Session(testDal, credentials);
            var version = new Version("1.1.0");

            Assert.AreEqual(version.Major, this.session.DalVersion.Major);
            Assert.AreEqual(version.Minor, this.session.DalVersion.Minor);
            Assert.AreEqual(version.Build, this.session.DalVersion.Build);
        }
        public void VerifyThatIsVersionSupportedReturnsExpectedResult()
        {
            var testDal     = new TestDal();
            var credentials = new Credentials("John", "Doe", this.uri);

            this.session = new Session(testDal, credentials);

            var supportedVersion = new Version("1.0.0");

            Assert.IsTrue(this.session.IsVersionSupported(supportedVersion));

            supportedVersion = new Version("1.1.0");
            Assert.IsTrue(this.session.IsVersionSupported(supportedVersion));

            var notSupportedVersion = new Version("2.0.0");

            Assert.IsFalse(this.session.IsVersionSupported(notSupportedVersion));
        }