Пример #1
0
        public void Remove_A_Info_When_All_Populated_Should_Be_FourTeen()
        {
            fixture.PopulateAll();
            var repository = new InfoRepository(fixture.context);
            var id         = InfoEntityTypeConfiguration.InfoSeed.ElementAt(2).ContactId;
            var InfoTypeId = InfoEntityTypeConfiguration.InfoSeed.ElementAt(2).InfoTypeId;
            var entity     = repository.Find(id as object, InfoTypeId as object).Result;

            repository.Remove(entity);
            var entities = repository.Get();
            var count    = entities.Count();

            Assert.Equal(14, count);
        }