Exemplo n.º 1
0
        public async Task GetByIDAsync_WhenSectionExists_ThenReturnsSectionByID()
        {
            Section section = new Section {
                ID = Guid.NewGuid(), Name = "Test Name"
            };

            sectionRepository.Upsert(section);
            dbContext.SaveChanges();

            Section dbSection = await sectionRepository.GetByIDAsync(section.ID);

            AssertSectionEqual(section, dbSection);
        }