public void VoiceCalls_Must_Use_Duration_In_Seconds_As_UnitSize()
        {
            var call = new VoiceCall("", new DateTime(2012, 1, 1), new TimeSpan(0,0,1,2), "", "", "");

            call.GetUnitSize().Should().Be(62);
        }
        public void VoiceCalls_Must_Use_Start_As_StartTime()
        {
            var call = new VoiceCall("", new DateTime(2012, 1, 1), new TimeSpan(0, 0, 1, 2), "", "", "");

            call.GetStartTime().Should().Be(new DateTime(2012, 1, 1));
        }
 public void Call_Must_Be_Invalid_If_There_Is_No_UnitSize()
 {
     var call = new VoiceCall("99999999", new DateTime(2012, 1, 1), new TimeSpan(0, 0, 0, 0), "DEST", "DK", "DK");
     call.IsValid().Should().BeFalse();
 }
 public void Call_Must_Be_Invalid_If_There_Is_No_PhoneNumber()
 {
     var call = new VoiceCall("", new DateTime(2012, 1, 1), new TimeSpan(0, 0, 1, 2), "DEST", "DK", "DK");
     call.IsValid().Should().BeFalse();
 }
 public void Call_Must_Be_Invalid_If_There_Is_No_Destination()
 {
     var call = new VoiceCall("99999999", new DateTime(2012, 1, 1), new TimeSpan(0, 0, 1, 2), "", "DK", "DK");
     call.IsValid().Should().BeFalse();
 }
 public void WhenTheCustomerTriesToMakeAVoiceCallWithThePhoneToDEFromDK()
 {
     _toCountry = "DE";
     var call = new VoiceCall(_phoneNumber, DateTime.Now, DateTime.Now.TimeOfDay, _destinationNumber, _fromCountry, _toCountry);
     ScenarioContext.Current.Set(call);
 }
        public void WhenIMakeAVoiceCallWithThePhone23458126()
        {
            var voiceCall = new VoiceCall(_subscription.PhoneNumber,
                                          new DateTime(2012, 1, 1),
                                          new TimeSpan(0, 3, 45),
                                          "33334444",
                                          _subscription.LocalCountry,
                                          _subscription.LocalCountry);
            ScenarioContext.Current.Set(voiceCall);

            _callRegistration.RegisterACall(voiceCall);
        }