public void Should_get_entity()
        {
            var uniqueDogName = Guid.NewGuid().ToString();

            var dog = new Dog { Age = 15, Name = uniqueDogName };

            PluginInstance.Save(dog);

            var dogs = PluginInstance.Get<Dog>(new Dog() { Age = 15 ,Name = uniqueDogName});

            Assert.That(dogs[0], Is.EqualTo(dog));
        }
        public void Should_get_list_of_entity()
        {
            var uniqueDogName = Guid.NewGuid().ToString();

            var dogA = new Dog { Age = 10, Name = uniqueDogName };
            var dogB = new Dog { Age = 15, Name = uniqueDogName };
            var dogC = new Dog { Age = 25, Name = uniqueDogName };

            PluginInstance.Save(dogA);
            PluginInstance.Save(dogB);
            PluginInstance.Save(dogC);

            var dogs = PluginInstance.Get<Dog>(new Dog { Name = uniqueDogName });

            Assert.That(dogs.Count, Is.EqualTo(3));
        }
        public void Should_save_entity()
        {
            var uniqueDogName = Guid.NewGuid().ToString();

            var dog = new Dog { Age = 15, Name = uniqueDogName };

            Assert.That(() => PluginInstance.Save(dog), Throws.Nothing);
        }
        public void Should_update_entity()
        {
            var uniqueDogName = Guid.NewGuid().ToString();

            var dog = new Dog { Age = 15, Name = uniqueDogName };

            PluginInstance.Save(dog);

            dog.Age = 200;

            PluginInstance.Update(dog);

            var dogs = PluginInstance.Get<Dog>(new Dog { Name = uniqueDogName });

            Assert.That(dogs[0].Age, Is.EqualTo(200));
        }