示例#1
0
        public void GetCarByIdNotFound()
        {
            using (var Repo = new SQLCarRepository(options))
            {
                var GetCarById = Repo.GetCar(99);

                GetCarById.ShouldBeNull();
            }
        }
示例#2
0
        public void GetCarByIdFromTable()
        {
            using (var Repo = new SQLCarRepository(options))
            {
                Repo.CreateCar(CarToCreate);

                var GetCarById = Repo.GetCar(1);

                GetCarById.Equals(ExpectedCar).ShouldBeTrue();
            }
        }