public void GetLayoutsFail()
        {
            //Arrange
            var layoutTypeRepository = new LayoutTypeRepository(_container);
            var dbContext            = _serviceProvider.GetRequiredService <DeviserDbContext>();

            dbContext.LayoutType.RemoveRange(dbContext.LayoutType);

            //Act
            var result = layoutTypeRepository.GetLayoutTypes();

            //Assert
            Assert.NotNull(result);
            Assert.True(result.Count == 0);
        }
        public void GetLayoutTypesSuccess()
        {
            //Arrange
            var layoutTypeRepository = new LayoutTypeRepository(_container);
            var dbContext            = _serviceProvider.GetRequiredService <DeviserDbContext>();
            var layoutTypes          = TestDataRepository.GetLayoutTypes();

            foreach (var item in layoutTypes)
            {
                layoutTypeRepository.CreateLayoutType(item);
            }

            //Act
            var result = layoutTypeRepository.GetLayoutTypes();

            //Assert
            Assert.NotNull(result);
            Assert.True(result.Count > 0);

            //Clean
            dbContext.LayoutType.RemoveRange(dbContext.LayoutType);
        }