public void EditPost() { var controller = new VehiclesController(); var result = controller.Edit(1); Assert.IsNotNull(result); }
public async void TestVehicleEditErrorView() { var obj = new VehiclesController(); ViewResult result = await obj.Edit(new Domain.Entities.Vehicle() { Id = Guid.Parse("11223344-5566-7788-99AA-BBCCDDEEFF00"), changeDate = DateTime.Now, inputDate = DateTime.Now, Manufacturer = "Volks" }) as ViewResult; Assert.IsNotNull(result); }