public static PopPopPotholesAPI.Domain.Models.CityAdmin Map(CityAdmin1 CA) { return(new PopPopPotholesAPI.Domain.Models.CityAdmin() { Id = CA.AdminId, UserName = CA.UserName, UserPass = CA.UserPass, Email = CA.Email, Phone = CA.Phone, KeyToCity = CA.KeyToCity, LockOut = CA.LockOut, AcctEnabled = CA.AcctEnabled }); }
public void CityAdmin1Model(string username, string userpass, string email, string phone, int keytocity, string acctenabled) { CityAdmin1 CityAdmin = new CityAdmin1() { UserName = username, UserPass = userpass, Email = email, Phone = phone, KeyToCity = keytocity, AcctEnabled = acctenabled }; Assert.Equal(username, CityAdmin.UserName); Assert.Equal(userpass, CityAdmin.UserPass); Assert.Equal(email, CityAdmin.Email); Assert.Equal(phone, CityAdmin.Phone); Assert.Equal(keytocity, CityAdmin.KeyToCity); Assert.Equal(acctenabled, CityAdmin.AcctEnabled); }