コード例 #1
0
        public void TestOuvrirCompteMethod()
        {
            var c = new Compte()
            {
                Numero = "E3000", Proprietaire = "MohamedAmine", Solde = 1000M
            };
            var UnderTest = new ComptesRepositoryImp_EF();

            UnderTest.OuvrirCompte(c);
        }
コード例 #2
0
        public void TestFindById_Degrade()
        {
            var Id = "Z100";

            var UnderTest = new ComptesRepositoryImp_EF();


            var Actual = UnderTest.FindById(Id);

            Assert.IsNull(Actual);
        }
コード例 #3
0
        public void TestFindById_Nominal()
        {
            var Id = "C2000";

            var UnderTest = new ComptesRepositoryImp_EF();
            var Excpected = new Compte()
            {
                Numero = "C2000", Proprietaire = "MohamedAmine", Solde = 1000M
            };

            var Actual = UnderTest.FindById(Id);

            Assert.AreEqual(Excpected, Actual);
        }