private void DeleteInitialData()
        {
            IGroomingRepository groomingRepository = new GroomingRepository();
            foreach (var grooming in _groomings)
            {
                Grooming fromDb = groomingRepository.GetById(grooming.GroomingId);
                if (fromDb != null)
                {
                    groomingRepository.Remove(grooming);
                }
            }

            IUserRepository userRepository = new UserRepository();
            userRepository.Remove(_user1);
            userRepository.Remove(_user2);

            IDogRepository dogRepository = new DogRepository();
            dogRepository.Remove(_dog1);
            dogRepository.Remove(_dog2);

            IGroomingTypeRepository groomingTypeRepository = new GroomingTypeRepository();
            groomingTypeRepository.Remove(_groomingType1);
            groomingTypeRepository.Remove(_groomingType2);
        }
 public void Can_get_existing_grooming_by_id()
 {
     IGroomingRepository repository = new GroomingRepository();
     var fromDb = repository.GetById(_groomings[1].GroomingId);
     Assert.IsNotNull(fromDb);
     Assert.AreNotSame(_groomings[1], fromDb);
     Assert.AreEqual(_groomings[1].GroomingType, fromDb.GroomingType);
     Assert.AreEqual(_groomings[1].Cost, fromDb.Cost);
     Assert.AreEqual(_groomings[1].Date, fromDb.Date);
     Assert.AreEqual(_groomings[1].Dog, fromDb.Dog);
     Assert.AreEqual(_groomings[1].User, fromDb.User);
 }