public void SuppliersControllerAddActionShouldRenderProperView()
        {
            var suppliersServicesMock = new Mock<ISuppliersServices>();
            suppliersServicesMock.Setup(x => x.Add(new Supplier { Name = "Delete me" }));
            var controller = new SuppliersController(suppliersServicesMock.Object);

            controller.WithCallTo(x => x.Add()).ShouldRenderView("Add");
        }
        public void SuppliersControllerEditActionShouldRenderProperView()
        {
            var suppliersServicesMock = new Mock<ISuppliersServices>();
            var supplier = new Supplier { Name = "Delete me" };
            suppliersServicesMock.Setup(x => x.Update(It.IsAny<int>(), supplier));

            var controller = new SuppliersController(suppliersServicesMock.Object);

            controller.WithCallTo(x => x.Edit(123)).ShouldRenderView("Edit");
        }