internal static Apartment Apartment201() { var dwellers = new List <Dweller>(); dwellers.Add(Dweller.FromId( 4, "Fulano Santos", new DateTime(1982, 04, 27), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); dwellers.Add(Dweller.FromId( 5, "Beltrano Santos", new DateTime(1980, 01, 01), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); dwellers.Add(Dweller.FromId( 6, "Joaozinho Santos", new DateTime(1980, 01, 01), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); return(Apartment.FromId(3, 201, "A", dwellers)); }
internal static Apartment Apartment212() { var dwellers = new List <Dweller>(); dwellers.Add(Dweller.FromId( 3, "Ciclana da silva", new DateTime(1982, 04, 27), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); return(Apartment.FromId(2, 212, "B", dwellers)); }
public void FromId() { var dweller = Dweller.FromId( 1, "Marcelo Gerent", new DateTime(1982, 04, 27), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null); Assert.Equal(1, dweller.Id); Assert.Equal("Marcelo Gerent", dweller.Name); Assert.Equal(new DateTime(1982, 04, 27), dweller.BirthDate); Assert.Equal("(48) 99619-0445", dweller.Telephone); Assert.Equal("123.456.789-09", dweller.CPF); Assert.Equal("*****@*****.**", dweller.Email); }
public void UpdateData() { var dweller = Dweller.FromId( 1, "Marcelo Gerent", new DateTime(1982, 04, 27), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null); dweller.UpdateData("Marcelo Takeshi Gerent", new DateTime(1982, 04, 01), "(48) 9619-0445", "234.567.890-12", "*****@*****.**"); Assert.Equal(1, dweller.Id); Assert.Equal("Marcelo Takeshi Gerent", dweller.Name); Assert.Equal(new DateTime(1982, 04, 01), dweller.BirthDate); Assert.Equal("(48) 9619-0445", dweller.Telephone); Assert.Equal("234.567.890-12", dweller.CPF); Assert.Equal("*****@*****.**", dweller.Email); }
internal static Apartment Apartment211() { var dwellers = new List <Dweller>(); dwellers.Add(Dweller.FromId( 1, "Marcelo Gerent", new DateTime(1982, 04, 27), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); dwellers.Add(Dweller.FromId( 2, "Zezinho Gerent", new DateTime(1980, 01, 01), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); return(Apartment.FromId(1, 211, "B", dwellers)); }
private IEnumerable <Dweller> UpdateDwellerListNew() { var list = new List <Dweller>(); list.Add(Dweller.FromId( 1, "Marcelo Gerent", new DateTime(1982, 04, 27), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); list.Add(Dweller.FromId( 0, "Huguinho Gerent", new DateTime(1980, 01, 01), "(48) 99619-0445", "123.456.789-09", "*****@*****.**", null)); return(list); }
private static Dweller FromDwellerDto(DwellerDto dwellerDto) { return(Dweller.FromId(dwellerDto.Id, dwellerDto.Name, dwellerDto.BirthDate.Value, dwellerDto.Telephone, dwellerDto.CPF, dwellerDto.Email, null)); }