public void DeleteAllDogs()
        {
            var adapter = new DogAdapterStub();

            adapter.DeleteAllDogs();

            var dogCount = adapter.GetAllDogs().Count();

            Assert.IsTrue(dogCount == 0);
        }
Beispiel #2
0
        /// <summary>
        /// Deletes the dog.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <returns>Delete success state</returns>
        public ResponseItem<bool> DeleteDog(Guid id)
        {
            var adapter = new DogAdapterStub();
            var isDeleted = adapter.DeleteAllDogs();

            var result = (isDeleted) ? ResultCodeEnum.Success : ResultCodeEnum.GeneralFailure;

            return new ResponseItem<bool>(result)
            {
                Data = isDeleted
            };
        }