public void ShouldThrowNullException()
        {
            using var scope = _scopeFactory.CreateScope();

            var serviceProvider = scope.ServiceProvider.GetService <IServiceProvider>();

            var typeService = scope.ServiceProvider.GetService <ITypeService>();

            var validatorFactoryService = new ValidatorFactoryService(serviceProvider, typeService);

            FluentActions.Invoking(() =>
                                   validatorFactoryService.GetValidator(new Mock <IObjectToValidate>().Object))
            .Should().Throw <ArgumentNullException>();
        }
        public void ShouldReturnValidator()
        {
            using var scope = _scopeFactory.CreateScope();

            var serviceProvider = scope.ServiceProvider.GetService <IServiceProvider>();

            var typeService = scope.ServiceProvider.GetService <ITypeService>();

            var validatorFactoryService = new ValidatorFactoryService(serviceProvider, typeService);

            var result = validatorFactoryService.GetValidator(new UserForLoginDto());

            result.Should().NotBeNull();
        }