public void InvalidOperationExceptionOnDeleteIdDoesNotExist()
        {
            ICRUDTestDBContextProvider cRUDTestDBContextProvider = new CRUDTestDBContextProvider(Guid.NewGuid().ToString());
            var activeRecordStub = new ActiveRecordStub <Genre, int>(cRUDTestDBContextProvider);

            activeRecordStub.Delete();
        }
        public void DeleteTest()
        {
            ICRUDTestDBContextProvider cRUDTestDBContextProvider = new CRUDTestDBContextProvider(Guid.NewGuid().ToString());
            var context = cRUDTestDBContextProvider.GetContext();
            var genre   = new Genre {
                GenreId = 1
            };

            context.Add(genre);
            context.SaveChanges();

            var activeRecordStub = new ActiveRecordStub <Genre, int>(cRUDTestDBContextProvider);

            activeRecordStub.Load(1);
            Assert.IsTrue(activeRecordStub.Id == 1);
            activeRecordStub.Delete();
            activeRecordStub.Load(1);
        }