Пример #1
0
 public void CreatePhoneBookEntryTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var gosho = fixture.CreatePhoneBookEntry("Gosho", "Goshov");
     Assert.AreEqual("Gosho", gosho.FirstName);
     Assert.AreEqual("Goshov", gosho.LastName);
 }
Пример #2
0
        public void CreatePhoneBookDupliacteEntryTest()
        {
            IPhoneBook fixture = new PhoneBook();
            var firstUser = fixture.CreatePhoneBookEntry("Gosho", "Goshov");

            var secondUser = fixture.CreatePhoneBookEntry("Gosho", "Goshov");
        }
Пример #3
0
        public void DeleteEntryByFirstAndLastNameTest()
        {
            IPhoneBook fixture = new PhoneBook();

            fixture.DeleteEntryByFirstAndLastName("Gosho", "Goshov");
        }
Пример #4
0
 public void CreatePhoneBookEntryNullLastNameTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var        gosho   = fixture.CreatePhoneBookEntry("Gosho", null);
 }
Пример #5
0
 public void CreatePhoneBookEntryNullFirstNameTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var        gosho   = fixture.CreatePhoneBookEntry(null, "Goshov");
 }
Пример #6
0
 public void EditPhoneNumberUserTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var firstUser = fixture.CreatePhoneBookEntry("Gosho", "Goshov", PhoneType.Cellphone, "0888");
     fixture.EditPhoneNumber("Gosho", "Ivanov", PhoneType.Cellphone, "0888", PhoneType.Cellphone, "0999");
 }
Пример #7
0
 public void EditeUserNameTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var firstUser = fixture.CreatePhoneBookEntry("Gosho", "Goshov");
     fixture.EditeUserName("Gosho", "ivanov", "Ivan", "Goshov");
 }
Пример #8
0
 public void DeletePhoneFromUserTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var firstUser = fixture.CreatePhoneBookEntry("Gosho", "Goshov", PhoneType.Cellphone, "0888");
     fixture.DeletePhoneFromUser("Gosho", "Ivanov", "0888");
 }
Пример #9
0
 public void DeleteEntryByFirstAndLastNameTest()
 {
     IPhoneBook fixture = new PhoneBook();
     fixture.DeleteEntryByFirstAndLastName("Gosho", "Goshov");
 }
Пример #10
0
 public void CreatePhoneBookEntryNullLastNameTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var gosho = fixture.CreatePhoneBookEntry("Gosho", null);
 }
Пример #11
0
 public void CreatePhoneBookEntryNullFirstNameTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var gosho = fixture.CreatePhoneBookEntry(null, "Goshov");
 }
Пример #12
0
 public void AddPhoneToUserTest()
 {
     IPhoneBook fixture = new PhoneBook();
     var firstUser = fixture.CreatePhoneBookEntry("Gosho", "Goshov", PhoneType.Cellphone, "0888");
     fixture.AddPhoneToUser("Gosho", "Goshov", PhoneType.Cellphone, "0888");
 }