Exemple #1
0
        public void FaunaRepositoryDb_GetFaunaById()
        {
            FaunaRepositoryDb urd = new FaunaRepositoryDb();
            var a = urd.GetFaunaById(1);

            Assert.IsNotNull(a);
        }
Exemple #2
0
        public void FaunaRepositoryDb_DeleteFauna()
        {
            FaunaRepositoryDb urd = new FaunaRepositoryDb();

            urd.DeleteFauna(1);
            var a = urd.GetFaunaById(1);

            Assert.IsNull(a);
        }
Exemple #3
0
        public void FaunaRepositoryDb_UpdateFauna()
        {
            FaunaRepositoryDb urd   = new FaunaRepositoryDb();
            Fauna             fauna = new Fauna()
            {
                FaunaName = "Njajal Gan", FaunaId = 1
            };

            urd.UpdateFauna(fauna);
            var a = urd.GetFaunaById(1);

            Assert.AreEqual(fauna, a);
        }
Exemple #4
0
        public void FaunaRepositoryDb_AddFauna()
        {
            FaunaRepositoryDb urd   = new FaunaRepositoryDb();
            Fauna             fauna = new Fauna()
            {
                FaunaName = "Njajal Gan", FaunaId = 1000
            };

            urd.AddFauna(fauna);
            var a = urd.GetFaunaById(1000);

            Assert.IsNotNull(a);
        }