public void Channel_New_Successful() { UserControllerTest userTest = new UserControllerTest(); userTest.User_Register_Successful(); NimbusUser nimbusUser = new NimbusUser(); nimbusUser.UserId = 1; controller.NimbusUser = nimbusUser; Channel model = new Channel(); model.CategoryId = 0; model.OrganizationId = 0; model.Visible = true; model.Description = "Canal HAHAHA"; model.Followers = 0; model.ImgUrl = "Bazinga!"; model.IsCourse = false; model.IsPrivate = false; model.Name = "Canal de Teste"; model.OpenToComments = true; model.Price = 0; controller.NewChannel(model); }
public void User_Show_Successful() { User_Register_Successful(); NimbusUser nimbusUser = new NimbusUser(); nimbusUser.UserId = 1; controller.NimbusUser = nimbusUser; var model = controller.showProfile(); }
public void User_Edit_Successful() { User_Register_Successful(); NimbusUser nimbusUser = new NimbusUser(); nimbusUser.UserId = 1; controller.NimbusUser = nimbusUser; User model = new User(); model.City = "Bauru"; model.Country = "Brazil"; model.State = "SP"; model.About = "I'm just a nice geek guy"; model.Experience = "Programmer and Project Manager"; model.Interest = "Mobile and Java"; model.Occupation = "Programmer on Nimbus Corp"; model.AvatarUrl = "http://portalnimbus.com.br/images/logo_hotsite-01.png"; model.BirthDate = DateTime.Now; var response = controller.EditProfile(model); }