Exemplo n.º 1
0
        public void Add_New_Training()
        {
            // Arrange
            var newItem = new Training()
            {
                Name      = "Cloud",
                EndDate   = new DateTime(2019, 03, 01),
                StartDate = new DateTime(2019, 02, 01)
            };

            // Act
            var okResult = (controller.Add(newItem) as OkObjectResult);


            // Assert
            Assert.IsType <Training>(okResult.Value);
            //Assert.Equal("Cloud", newTraining.Name);
        }
Exemplo n.º 2
0
        public void Setup()
        {
            TrainingController tc = new TrainingController();

            tc.Add();
        }