public void Post()
        {
            // 排列
            ValuesController controller = new ValuesController();

            // 操作
            controller.Post("value");

            // 断言
        }
        public void Put()
        {
            // 排列
            ValuesController controller = new ValuesController();

            // 操作
            controller.Put(5, "value");

            // 断言
        }
Beispiel #3
0
        public void Put()
        {
            // Arrange
            ValuesController controller = new ValuesController();

            // Act
            controller.Put(5, "value");

            // Assert
        }
        public void Delete()
        {
            // 排列
            ValuesController controller = new ValuesController();

            // 操作
            controller.Delete(5);

            // 断言
        }
Beispiel #5
0
        public void Delete()
        {
            // Arrange
            ValuesController controller = new ValuesController();

            // Act
            controller.Delete(5);

            // Assert
        }
        public void Delete()
        {
            // Anordnen
            ValuesController controller = new ValuesController();

            // Aktion ausführen
            controller.Delete(5);

            // Bestätigen
        }
        public void Put()
        {
            // Anordnen
            ValuesController controller = new ValuesController();

            // Aktion ausführen
            controller.Put(5, "value");

            // Bestätigen
        }
        public void GetById()
        {
            // 排列
            ValuesController controller = new ValuesController();

            // 操作
            string result = controller.Get(5);

            // 断言
            Assert.AreEqual("value", result);
        }
Beispiel #9
0
        public void GetById()
        {
            // Arrange
            ValuesController controller = new ValuesController();

            // Act
            string result = controller.Get(5);

            // Assert
            Assert.AreEqual("value", result);
        }
        public void GetById()
        {
            // Anordnen
            ValuesController controller = new ValuesController();

            // Aktion ausführen
            string result = controller.Get(5);

            // Bestätigen
            Assert.AreEqual("value", result);
        }
        public void Get()
        {
            // 排列
            ValuesController controller = new ValuesController();

            // 操作
            IEnumerable<string> result = controller.Get();

            // 断言
            Assert.IsNotNull(result);
            Assert.AreEqual(2, result.Count());
            Assert.AreEqual("value1", result.ElementAt(0));
            Assert.AreEqual("value2", result.ElementAt(1));
        }
Beispiel #12
0
        public void Get()
        {
            // Arrange
            ValuesController controller = new ValuesController();

            // Act
            IQueryable<string> result = controller.Get();

            // Assert
            Assert.IsNotNull(result);
            Assert.AreEqual(2, result.Count());
            Assert.AreEqual("value1", result.ElementAt(0));
            Assert.AreEqual("value2", result.ElementAt(1));
        }
        public void Get()
        {
            // Anordnen
            ValuesController controller = new ValuesController();

            // Aktion ausführen
            IEnumerable<string> result = controller.Get();

            // Bestätigen
            Assert.IsNotNull(result);
            Assert.AreEqual(2, result.Count());
            Assert.AreEqual("value1", result.ElementAt(0));
            Assert.AreEqual("value2", result.ElementAt(1));
        }
 public virtual void SetUp()
 {
     _controllerImplementation = new ValuesController();
     _apiControllerHelper = new ApiControllerTestHelper(_controllerImplementation);
 }
 public override void SetUp()
 {
     base.SetUp();
     _controllerImplementation = new ValuesController();
     _apiControllerHelper = new ApiControllerTestHelper(_controllerImplementation);
 }