public async Task CreateInspectionGroupAsync_NewDto_ReturnsRegisteredDto() { var target = new CategoryRepository(_context, _mapper); var dto = new InspectionGroupDto { Description = "group" }; var actualDto = await target.CreateInspectionGroupAsync(dto); Assert.NotEqual(0, actualDto.InspectionGroupId); Assert.Equal("group", actualDto.Description); var actualEntity = _context.InspectionGroups.First(); Assert.NotEqual(0, actualEntity.InspectionGroupId); Assert.Equal("group", actualEntity.Description); }