private void CheckTranslation(VmLocationChannelStep1 step1, ServiceChannelVersioned target)
        {
            if (step1.OrganizationId.HasValue)
            {
                target.OrganizationId.Should().NotBeEmpty();
                target.OrganizationId.Should().Be(step1.OrganizationId.Value);
            }
//            var names = conversion.GetValidTexts(step1.Name);
            target.ServiceChannelNames.Count.Should().Be(1, "ServiceNames");
//            var descriptions = conversion.GetValidTexts(step1.ShortDescription, step1.Description);
//            target.ServiceChannelDescriptions.Count.Should().Be(descriptions.Count, "ServiceDescriptions");
        }
예제 #2
0
 public IServiceResultWrap SaveLocationChannelStep1Changes([FromBody] VmLocationChannelStep1 model)
 {
     return(serviceManager.CallService(
                () => new ServiceLocalizedResultWrap(model)
     {
         Data = channelService.SaveLocationChannelStep1(model)
     },
                new Dictionary <Type, string>()
     {
         { typeof(string), MessageChannelStepSave },
         { typeof(PtvArgumentException), MessageArgumentException },
         { typeof(LockException), MessageLockedChannel },
         { typeof(RoleActionException), MessageSaveChannelRole }
     }
                ));
 }
예제 #3
0
 public void PrefilterViewModel(VmLocationChannelStep1 vm)
 {
     webPageLogic.PrefilterModel(vm);
     addressLogic.PrefilterModel(vm);
 }
예제 #4
0
 private void CheckTranslation(VmLocationChannelStep1 step1, ServiceLocationChannel target)
 {
     target.Id.Should().NotBe(Guid.Empty);
 }