public void DecreaseBundleOfMinutes_ValidPhoneAndConnection_DecreasedValue() { //Arrange ConnectionBl validConnection = new ConnectionBl { TimeOfConnectionInSeconds = 20 }; int secondsLeft = validPhone.SecondsLeftInBundle - validConnection.TimeOfConnectionInSeconds; var dataObjectMapperMock = new Mock <IDataObjectMapper>(); var subscribersSystemDbContextMock = new Mock <ISubscribersSystemDbContext>(); var phoneService = new PhoneService(() => subscribersSystemDbContextMock.Object, dataObjectMapperMock.Object); //Act var result = phoneService.DecreaseBundleOfMinutes(validPhone, validConnection); //Assert Assert.AreEqual(secondsLeft, result); }