public async void Address2_Create_null()
        {
            Mock <IEventRepository> eventRepository = new Mock <IEventRepository>();

            eventRepository.Setup(x => x.Get(It.IsAny <int>())).Returns(Task.FromResult(new Event()));

            var validator = new ApiEventServerRequestModelValidator(eventRepository.Object);
            await validator.ValidateCreateAsync(new ApiEventServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Address2, null as string);
        }
        public async void CityId_Create_Valid_Reference()
        {
            Mock <IEventRepository> eventRepository = new Mock <IEventRepository>();

            eventRepository.Setup(x => x.CityByCityId(It.IsAny <int>())).Returns(Task.FromResult <City>(new City()));

            var validator = new ApiEventServerRequestModelValidator(eventRepository.Object);
            await validator.ValidateCreateAsync(new ApiEventServerRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.CityId, 1);
        }
        public async void Website_Create_length()
        {
            Mock <IEventRepository> eventRepository = new Mock <IEventRepository>();

            eventRepository.Setup(x => x.Get(It.IsAny <int>())).Returns(Task.FromResult(new Event()));

            var validator = new ApiEventServerRequestModelValidator(eventRepository.Object);
            await validator.ValidateCreateAsync(new ApiEventServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Website, new string('A', 129));
        }
        public async void EventStatusId_Create_Invalid_Reference()
        {
            Mock <IEventRepository> eventRepository = new Mock <IEventRepository>();

            eventRepository.Setup(x => x.EventStatusByEventStatusId(It.IsAny <int>())).Returns(Task.FromResult <EventStatus>(null));

            var validator = new ApiEventServerRequestModelValidator(eventRepository.Object);

            await validator.ValidateCreateAsync(new ApiEventServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.EventStatusId, 1);
        }