public void Info_Count_When_Partial_Populated_Should_Be_Two() { fixture.PopulatePartial(); var repository = new InfoRepository(fixture.context); var contactCount = repository.Get().Count(); Assert.Equal(2, contactCount); }
public void Info_Count_When_All_Populated_Should_Be_Fifteen() { fixture.PopulateAll(); var repository = new InfoRepository(fixture.context); var c = repository.Get().Count(); Assert.Equal(15, c); }
public void Add_A_Info_When_Partial_Populated_Should_Be_Three() { fixture.PopulatePartial(); var repository = new InfoRepository(fixture.context); repository.Add(InfoEntityTypeConfiguration.InfoSeed.ElementAt(3)); var count = repository.Get().Count(); Assert.Equal(3, count); }
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); }
public IActionResult About() { var model = _infoRepository.Get(); return(View(model)); }
public IActionResult Edit() { var model = _InfoRepository.Get(); return(View(model)); }