public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); CfDaysOfWeek[] daysOfWeek = { CfDaysOfWeek.Monday }; BroadcastSchedule = new CfBroadcastSchedule(BroadcastScheduleId, DateTime.Now, DateTime.Now, "timeZone", DateTime.Now, DateTime.Now, daysOfWeek); CreateBroadcastSchedule = new CfCreateBroadcastSchedule("requestId", BroadcastScheduleId, BroadcastSchedule); BroadcastServiceMock .Stub( b => b.CreateBroadcastSchedule( Arg <CreateBroadcastSchedule> .Matches( x => x.RequestId == CreateBroadcastSchedule.RequestId && x.BroadcastId == CreateBroadcastSchedule.BroadcastId && x.BroadcastSchedule.id == BroadcastSchedule.Id && x.BroadcastSchedule.BeginDate == BroadcastSchedule.BeginDate && x.BroadcastSchedule.EndDate == BroadcastSchedule.EndDate && x.BroadcastSchedule.TimeZone == BroadcastSchedule.TimeZone && x.BroadcastSchedule.StartTimeOfDay == BroadcastSchedule.StartTimeOfDay && x.BroadcastSchedule.StopTimeOfDay == BroadcastSchedule.StopTimeOfDay && x.BroadcastSchedule.DaysOfWeek == BroadcastSchedule.DaysOfWeek.ToString().ToUpper()))) .Return(BroadcastScheduleId); }
public SoapBroadcastClient(string username, string password) { BroadcastService = new BroadcastServicePortTypeClient(GetCustomBinding(), GetEndpointAddress <Broadcast>()) { ClientCredentials = { UserName = { UserName = username, Password = password } } }; }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); CfDaysOfWeek[] daysOfWeek = {CfDaysOfWeek.Monday}; BroadcastSchedule = new CfBroadcastSchedule(BroadcastScheduleId, DateTime.Now, DateTime.Now, "timeZone", DateTime.Now, DateTime.Now, daysOfWeek); CreateBroadcastSchedule = new CfCreateBroadcastSchedule("requestId", BroadcastScheduleId, BroadcastSchedule); BroadcastServiceMock .Stub( b => b.CreateBroadcastSchedule( Arg<CreateBroadcastSchedule>.Matches( x => x.RequestId == CreateBroadcastSchedule.RequestId && x.BroadcastId == CreateBroadcastSchedule.BroadcastId && x.BroadcastSchedule.id == BroadcastSchedule.Id && x.BroadcastSchedule.BeginDate == BroadcastSchedule.BeginDate && x.BroadcastSchedule.EndDate == BroadcastSchedule.EndDate && x.BroadcastSchedule.TimeZone == BroadcastSchedule.TimeZone && x.BroadcastSchedule.StartTimeOfDay == BroadcastSchedule.StartTimeOfDay && x.BroadcastSchedule.StopTimeOfDay == BroadcastSchedule.StopTimeOfDay && x.BroadcastSchedule.DaysOfWeek == BroadcastSchedule.DaysOfWeek.ToString().ToUpper()))) .Return(BroadcastScheduleId); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedBroadcast = new CfBroadcast(1, "broadcast", CfBroadcastStatus.Running, DateTime.Now, CfBroadcastType.Voice, null); CreateExpectedBroadcast(1); LocalTimeZoneRestriction = new CfLocalTimeZoneRestriction(DateTime.Now, DateTime.Now); CfResult[] result = { CfResult.CarrierTempError }; CfRetryPhoneType[] phoneTypes = { CfRetryPhoneType.FirstNumber }; BroadcastConfigRestryConfig = new CfBroadcastConfigRetryConfig(1000, 2, result, phoneTypes); ExpectedVoiceBroadcastConfig = new CfVoiceBroadcastConfig(1, DateTime.Now, "fromNumber", null, BroadcastConfigRestryConfig, CfAnsweringMachineConfig.AmAndLive, "item", "liveSoundTextVoice", "item1", "machineSoundTextVoice", "item2", "tranferSoudnTextVoice", "1", "123456", "item3", "DncSoundTextVoice", "1", 5); ExpectedBroadcast.Item = ExpectedVoiceBroadcastConfig; CreateExpectedBroadcast(2); ExpectedVoiceBroadcastConfig.LocalTimeZoneRestriction = LocalTimeZoneRestriction; ExpectedVoiceBroadcastConfig.RetryConfig = null; ExpectedBroadcast.Item = ExpectedVoiceBroadcastConfig; CreateExpectedBroadcast(3); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedBroadcast = new CfBroadcast(1, "broadcast", CfBroadcastStatus.Running, DateTime.Now, CfBroadcastType.Voice, null); CreateExpectedBroadcast(1); LocalTimeZoneRestriction = new CfLocalTimeZoneRestriction(DateTime.Now, DateTime.Now); CfResult[] result = { CfResult.CarrierTempError }; CfRetryPhoneType[] phoneTypes = { CfRetryPhoneType.FirstNumber }; BroadcastConfigRestryConfig = new CfBroadcastConfigRetryConfig(1000, 2, result, phoneTypes); ExpectedVoiceBroadcastConfig = new CfVoiceBroadcastConfig(1, DateTime.Now, "fromNumber", null, BroadcastConfigRestryConfig, CfAnsweringMachineConfig.AmAndLive, "item", "liveSoundTextVoice", "item1", "machineSoundTextVoice", "item2", "tranferSoudnTextVoice", "1", "123456", "item3", "DncSoundTextVoice", "1", 5); ExpectedBroadcast.Item = ExpectedVoiceBroadcastConfig; CreateExpectedBroadcast(2); ExpectedVoiceBroadcastConfig.LocalTimeZoneRestriction = LocalTimeZoneRestriction; ExpectedVoiceBroadcastConfig.RetryConfig = null; ExpectedBroadcast.Item = ExpectedVoiceBroadcastConfig; CreateExpectedBroadcast(3); }
public SoapBroadcastClient(string username, string password) { BroadcastService = new BroadcastServicePortTypeClient(GetCustomBinding(), GetEndpointAddress<Broadcast>()) { ClientCredentials = { UserName = { UserName = username, Password = password } } }; }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastScheduleId = 1; BroadcastServiceMock.Stub(b => b.DeleteBroadcastSchedule(Arg<IdRequest>.Matches(x => x.Id == BroadcastScheduleId))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastScheduleId = 1; BroadcastServiceMock.Stub(b => b.DeleteBroadcastSchedule(Arg <IdRequest> .Matches(x => x.Id == BroadcastScheduleId))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedControlBroadcast = new CfControlBroadcast(1, "123", CfBroadcastCommand.Start, 5); BroadcastServiceMock .Stub(b => b.ControlBroadcast(Arg <ControlBroadcast> .Matches(x => x.Id == ExpectedControlBroadcast.Id && x.RequestId == ExpectedControlBroadcast.RequestId && x.MaxActive == ExpectedControlBroadcast.MaxActive && x.Command == BroadcastCommand.START))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ControlContactBatchId = 1; ExpectedControlContactBatch = new CfControlContactBatch(ControlContactBatchId, "controlContactBatch", false); BroadcastServiceMock .Stub(b => b.ControlContactBatch(Arg<ControlContactBatch>.Matches(x => x.Id == ExpectedControlContactBatch.Id && x.Name == ExpectedControlContactBatch.Name && x.Enabled == ExpectedControlContactBatch.Enabled))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ContactBatchId = 1; ExpectedContactBatch = new CfContactBatch(ContactBatchId, "contactBatch", CfBatchStatus.Active, 5, DateTime.Now, 200, 10); var contactBatch = ContactBatchMapper.ToSoapContactBatch(ExpectedContactBatch); BroadcastServiceMock .Stub(b => b.GetContactBatch(Arg<IdRequest>.Matches(x => x.Id == ContactBatchId))) .Return(contactBatch); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ControlContactBatchId = 1; ExpectedControlContactBatch = new CfControlContactBatch(ControlContactBatchId, "controlContactBatch", false); BroadcastServiceMock .Stub(b => b.ControlContactBatch(Arg <ControlContactBatch> .Matches(x => x.Id == ExpectedControlContactBatch.Id && x.Name == ExpectedControlContactBatch.Name && x.Enabled == ExpectedControlContactBatch.Enabled))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedControlBroadcast = new CfControlBroadcast(1, "123", CfBroadcastCommand.Start, 5); BroadcastServiceMock .Stub(b => b.ControlBroadcast(Arg<ControlBroadcast>.Matches(x => x.Id == ExpectedControlBroadcast.Id && x.RequestId == ExpectedControlBroadcast.RequestId && x.MaxActive == ExpectedControlBroadcast.MaxActive && x.Command == BroadcastCommand.START))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastScheduleId = 1; CfDaysOfWeek[] daysOfWeek = { CfDaysOfWeek.Monday }; BroadcastSchedule = new CfBroadcastSchedule(BroadcastScheduleId, DateTime.Now, DateTime.Now, "timeZone", DateTime.Now, DateTime.Now, daysOfWeek); var broadcastSchedule = BroadcastScheduleMapper.ToSoapBroadcastSchedule(BroadcastSchedule); BroadcastServiceMock .Stub(b => b.GetBroadcastSchedule(Arg<IdRequest>.Matches(x => x.Id == BroadcastScheduleId))) .Return(broadcastSchedule); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ContactBatchId = 1; ExpectedContactBatch = new CfContactBatch(ContactBatchId, "contactBatch", CfBatchStatus.Active, 5, DateTime.Now, 200, 10); var contactBatch = ContactBatchMapper.ToSoapContactBatch(ExpectedContactBatch); BroadcastServiceMock .Stub(b => b.GetContactBatch(Arg <IdRequest> .Matches(x => x.Id == ContactBatchId))) .Return(contactBatch); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 1; BroadcastName = "broadcast"; BroadcastServiceMock .Stub(b => b.UpdateBroadcast(Arg <BroadcastRequest> .Matches(x => x.Broadcast.id == BroadcastId && x.Broadcast.Name == BroadcastName && x.Broadcast.Status == BroadcastStatus.RUNNING && x.Broadcast.LastModified == DateTime.Now && x.Broadcast.Type == BroadcastType.TEXT))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastScheduleId = 1; CfDaysOfWeek[] daysOfWeek = { CfDaysOfWeek.Monday }; BroadcastSchedule = new CfBroadcastSchedule(BroadcastScheduleId, DateTime.Now, DateTime.Now, "timeZone", DateTime.Now, DateTime.Now, daysOfWeek); var broadcastSchedule = BroadcastScheduleMapper.ToSoapBroadcastSchedule(BroadcastSchedule); BroadcastServiceMock .Stub(b => b.GetBroadcastSchedule(Arg <IdRequest> .Matches(x => x.Id == BroadcastScheduleId))) .Return(broadcastSchedule); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedBroadcast = new CfBroadcast(1, "broadcast", CfBroadcastStatus.Running, DateTime.Now, CfBroadcastType.Text, null); BroadcastServiceMock .Stub(b => b.CreateBroadcast(Arg <BroadcastRequest> .Matches(x => x.Broadcast.id == ExpectedBroadcast.Id && x.Broadcast.Name == ExpectedBroadcast.Name && x.Broadcast.LastModified == ExpectedBroadcast.LastModified && x.Broadcast.Status == BroadcastStatus.RUNNING && x.Broadcast.Type == BroadcastType.TEXT))) .Return(ExpectedBroadcast.Id == null ? 0 : ExpectedBroadcast.Id.Value); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 1; BroadcastName = "broadcast"; BroadcastServiceMock .Stub(b => b.UpdateBroadcast(Arg<BroadcastRequest>.Matches(x => x.Broadcast.id == BroadcastId && x.Broadcast.Name == BroadcastName && x.Broadcast.Status == BroadcastStatus.RUNNING && x.Broadcast.LastModified == DateTime.Now && x.Broadcast.Type == BroadcastType.TEXT))); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedBroadcast = new CfBroadcast(1, "broadcast", CfBroadcastStatus.Running, DateTime.Now, CfBroadcastType.Text, null); BroadcastServiceMock .Stub(b => b.CreateBroadcast(Arg<BroadcastRequest>.Matches(x => x.Broadcast.id == ExpectedBroadcast.Id && x.Broadcast.Name == ExpectedBroadcast.Name && x.Broadcast.LastModified == ExpectedBroadcast.LastModified && x.Broadcast.Status == BroadcastStatus.RUNNING && x.Broadcast.Type == BroadcastType.TEXT))) .Return(ExpectedBroadcast.Id == null ? 0 : ExpectedBroadcast.Id.Value); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 2; const long id = 188717001; object[] contactList = { id }; ExpectedCreateContactBatch = new CfCreateContactBatch("1", BroadcastId, "name", contactList, false); BroadcastServiceMock .Stub(b => b.CreateContactBatch(Arg<CreateContactBatch>.Matches(x => x.RequestId == ExpectedCreateContactBatch.RequestId && x.BroadcastId == ExpectedCreateContactBatch.BroadcastId && x.Name == ExpectedCreateContactBatch.Name && x.ScrubBroadcastDuplicates == ExpectedCreateContactBatch.ScrubBroadcastDuplicates))) .Return(BroadcastId); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 2; const long id = 188717001; object[] contactList = { id }; ExpectedCreateContactBatch = new CfCreateContactBatch("1", BroadcastId, "name", contactList, false); BroadcastServiceMock .Stub(b => b.CreateContactBatch(Arg <CreateContactBatch> .Matches(x => x.RequestId == ExpectedCreateContactBatch.RequestId && x.BroadcastId == ExpectedCreateContactBatch.BroadcastId && x.Name == ExpectedCreateContactBatch.Name && x.ScrubBroadcastDuplicates == ExpectedCreateContactBatch.ScrubBroadcastDuplicates))) .Return(BroadcastId); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedQueryBroadcastData = new CfQueryBroadcastData(500, 0, 1); ExpectedContactBatch = new CfContactBatch(1, "contactBatch", CfBatchStatus.Active, 2, DateTime.Now, 10, 15); var contactBatchArray = new CfContactBatch[1]; contactBatchArray[0] = ExpectedContactBatch; ExpectedContactBatchQueryResult = new CfContactBatchQueryResult(10, contactBatchArray); BroadcastServiceMock .Stub(b => b.QueryContactBatches( Arg<QueryContactBatches>.Matches(x => x.MaxResults == ExpectedQueryBroadcastData.MaxResults && x.FirstResult == ExpectedQueryBroadcastData.FirstResult && x.BroadcastId == ExpectedQueryBroadcastData.BroadcastId))) .Return(ContactBatchQueryResultMapper.ToSoapContactBatchQueryResult(ExpectedContactBatchQueryResult)); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 1; GetBroadcastStats = new CfGetBroadcastStats(BroadcastId, DateTime.Now, DateTime.Now); ExpectedUsageStats = new BroadcastStatsUsageStats(5, 5, 2, 10, 2); var resultStat = new BroadcastStatsResultStat[1]; ExpectedResultStat = new BroadcastStatsResultStat("result", 2, 3); resultStat[0] = ExpectedResultStat; ExpectedActionsStatistics = new BroadcastStatsActionStatistics(2, 0, 10); var expectedBroadcastStats = new BroadcastStats(ExpectedUsageStats, resultStat, ExpectedActionsStatistics); BroadcastServiceMock .Stub(b => b.GetBroadcastStats(Arg<GetBroadcastStats>.Matches(x => x.Id == BroadcastId))) .Return(expectedBroadcastStats); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); ExpectedQueryBroadcastData = new CfQueryBroadcastData(500, 0, 1); ExpectedContactBatch = new CfContactBatch(1, "contactBatch", CfBatchStatus.Active, 2, DateTime.Now, 10, 15); var contactBatchArray = new CfContactBatch[1]; contactBatchArray[0] = ExpectedContactBatch; ExpectedContactBatchQueryResult = new CfContactBatchQueryResult(10, contactBatchArray); BroadcastServiceMock .Stub(b => b.QueryContactBatches(Arg <QueryContactBatches> .Matches(x => x.MaxResults == ExpectedQueryBroadcastData.MaxResults && x.FirstResult == ExpectedQueryBroadcastData.FirstResult && x.BroadcastId == ExpectedQueryBroadcastData.BroadcastId))) .Return(ContactBatchQueryResultMapper.ToSoapContactBatchQueryResult(ExpectedContactBatchQueryResult)); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub<IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 1; QueryBroadcastSchedule = new CfQueryBroadcastData(100, 1, BroadcastId); CfDaysOfWeek[] daysOfWeek = {CfDaysOfWeek.Monday}; BroadcastSchedule = new CfBroadcastSchedule(1, DateTime.Now, DateTime.Now, "timeZone", DateTime.Now, DateTime.Now, daysOfWeek); var broadcastSchedule = new CfBroadcastSchedule[1]; broadcastSchedule[0] = BroadcastSchedule; BroadcastScheduleQueryResult = new CfBroadcastScheduleQueryResult(1, broadcastSchedule); var broadcastScheduleQueryResult = BroadcastScheduleQueryResultMapper.ToSoapBroadcastScheduleQueryResult(BroadcastScheduleQueryResult); GenerateMock(BroadcastId, broadcastScheduleQueryResult); BroadcastId = 2; BroadcastScheduleQueryResult.BroadcastSchedule = null; broadcastScheduleQueryResult = BroadcastScheduleQueryResultMapper.ToSoapBroadcastScheduleQueryResult(BroadcastScheduleQueryResult); GenerateMock(BroadcastId, broadcastScheduleQueryResult); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 1; GetBroadcastStats = new CfGetBroadcastStats(BroadcastId, DateTime.Now, DateTime.Now); ExpectedUsageStats = new BroadcastStatsUsageStats(5, 5, 2, 10, 2); var resultStat = new BroadcastStatsResultStat[1]; ExpectedResultStat = new BroadcastStatsResultStat("result", 2, 3); resultStat[0] = ExpectedResultStat; ExpectedActionsStatistics = new BroadcastStatsActionStatistics(2, 0, 10); var expectedBroadcastStats = new BroadcastStats(ExpectedUsageStats, resultStat, ExpectedActionsStatistics); BroadcastServiceMock .Stub(b => b.GetBroadcastStats(Arg <GetBroadcastStats> .Matches(x => x.Id == BroadcastId))) .Return(expectedBroadcastStats); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); var queryBroadcast = new Broadcast[1]; BroadcastId = 1; BroadcastName = "broadcast"; BroadcastLastModified = DateTime.Now; queryBroadcast[0] = new Broadcast(BroadcastId, BroadcastName, BroadcastStatus.RUNNING, BroadcastLastModified, BroadcastType.IVR, null); CfBroadcastType[] broadcastType = { CfBroadcastType.Ivr }; ExpectedQueryBroadcast = new CfQueryBroadcasts(5, 0, broadcastType, true, "labelName"); var cfBroadcastQueryResult = new BroadcastQueryResult(1, queryBroadcast); BroadcastServiceMock .Stub(b => b.QueryBroadcasts(Arg <QueryBroadcasts> .Matches(x => x.MaxResults == ExpectedQueryBroadcast.MaxResults && x.FirstResult == ExpectedQueryBroadcast.FirstResult && x.Type == BroadcastType.IVR.ToString() && x.LabelName == ExpectedQueryBroadcast.LabelName))) .Return(cfBroadcastQueryResult); }
public void FixtureSetup() { BroadcastServiceMock = MockRepository.GenerateStub <IBroadcastServicePortTypeClient>(); Client = new SoapBroadcastClient(BroadcastServiceMock); BroadcastId = 1; QueryBroadcastSchedule = new CfQueryBroadcastData(100, 1, BroadcastId); CfDaysOfWeek[] daysOfWeek = { CfDaysOfWeek.Monday }; BroadcastSchedule = new CfBroadcastSchedule(1, DateTime.Now, DateTime.Now, "timeZone", DateTime.Now, DateTime.Now, daysOfWeek); var broadcastSchedule = new CfBroadcastSchedule[1]; broadcastSchedule[0] = BroadcastSchedule; BroadcastScheduleQueryResult = new CfBroadcastScheduleQueryResult(1, broadcastSchedule); var broadcastScheduleQueryResult = BroadcastScheduleQueryResultMapper.ToSoapBroadcastScheduleQueryResult(BroadcastScheduleQueryResult); GenerateMock(BroadcastId, broadcastScheduleQueryResult); BroadcastId = 2; BroadcastScheduleQueryResult.BroadcastSchedule = null; broadcastScheduleQueryResult = BroadcastScheduleQueryResultMapper.ToSoapBroadcastScheduleQueryResult(BroadcastScheduleQueryResult); GenerateMock(BroadcastId, broadcastScheduleQueryResult); }
internal SoapBroadcastClient(IBroadcastServicePortTypeClient client) { BroadcastService = client; }