コード例 #1
0
        public static Contact GetContactContactContactTypeInvalid()
        {
            var contact = GetContactOk();

            var contactType = ContactTypeFaker.GetContactTypeMessageEmpty();

            return(Contact.Factory.GetContact(
                       name: contact.Name,
                       phoneNumber: contact.PhoneNumber,
                       birthDate: contact.BirthDate,
                       contactType: contactType,
                       new List <Reservation>()
                       ));
        }
コード例 #2
0
        public static Contact GetContactContactReservationNull()
        {
            var contact = GetContactOk();

            var contactType = ContactTypeFaker.GetContactTypeOk();

            return(Contact.Factory.GetContact(
                       name: contact.Name,
                       phoneNumber: contact.PhoneNumber,
                       birthDate: contact.BirthDate,
                       contactType: contactType,
                       null
                       ));
        }
コード例 #3
0
        public static Contact GetContactOk()
        {
            var faker = new Faker();

            var name        = faker.Name.FullName();
            var phoneNumer  = "555 555 1212";
            var birthDate   = faker.Date.Past();
            var contactType = ContactTypeFaker.GetContactTypeOk();


            return(Contact.Factory.GetContact(name: name,
                                              phoneNumber: phoneNumer,
                                              birthDate: birthDate,
                                              contactType: contactType,
                                              reservations: new List <Reservation>()));
        }