public void GetById() { // Arrange CargasController controller = new CargasController(); // Act Carga result = controller.Get(new Guid("67f2bead-fb87-48b3-b3e8-bd1610e15a5a")); // Assert Assert.AreEqual("value", result); }
public void Get() { CargasController controller = new CargasController(); IEnumerable<Carga> result = controller.Get(); // Assert Assert.IsNotNull(result); Assert.AreEqual(2, result.Count()); Assert.AreEqual("value1", result.ElementAt(0)); Assert.AreEqual("value2", result.ElementAt(1)); }