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"); }
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 } } )); }
public void PrefilterViewModel(VmLocationChannelStep1 vm) { webPageLogic.PrefilterModel(vm); addressLogic.PrefilterModel(vm); }
private void CheckTranslation(VmLocationChannelStep1 step1, ServiceLocationChannel target) { target.Id.Should().NotBe(Guid.Empty); }