public SalonForm() { InitializeComponent(); slncon = new SalonController(); ilklemeYap(); }
public void DeleteStylist_ReturnsCorrectView_True() { SalonController controller = new SalonController(); ActionResult indexView = controller.DeleteStylist(1); Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public void CreateForm_ReturnsCorrectView_True() { SalonController controller = new SalonController(); ActionResult indexView = controller.CreateForm(); Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public void ClientListSpecialty_ReturnsCorrectView_True() { SalonController controller = new SalonController(); ActionResult indexView = controller.ClientsListSpecialty(1); Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public void stylistsSpecialties_ReturnsCorrectView_True() { SalonController controller = new SalonController(); ActionResult indexView = controller.StylistsSpecialties(1); Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public void EditClients_ReturnsCorrectView_True() { SalonController controller = new SalonController(); ActionResult indexView = controller.EditClients(1); Assert.IsInstanceOfType(indexView, typeof(ViewResult)); }
public SalonControllerTest() { salonRepoMock = new Mock <ISalonRepository>(); salonLogger = new Mock <ILogger <SalonController> >(); controller = new SalonController(salonRepoMock.Object, salonLogger.Object); }