public async void Address2_Update_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.ValidateUpdateAsync(default(int), new ApiEventServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.Address2, null as string);
        }
        public async void Address1_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.Address1, new string('A', 129));
        }
        public async void CityId_Update_Invalid_Reference()
        {
            Mock <IEventRepository> eventRepository = new Mock <IEventRepository>();

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

            var validator = new ApiEventServerRequestModelValidator(eventRepository.Object);

            await validator.ValidateUpdateAsync(default(int), new ApiEventServerRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.CityId, 1);
        }
        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);
        }