public void Activity_Create()
        {
            int countActivitiesBefore = activities.Count;

            ActionResult actionResult = controller.Create(newActivity);

            Assert.AreNotEqual(countActivitiesBefore, activities.Count);
            Assert.IsInstanceOfType(actionResult, typeof(RedirectToRouteResult));
        }
Esempio n. 2
0
        private async Task CreateActivitiesAsync()
        {
            var c = new ActivitiesController(_context);

            foreach (var activity in activities)
            {
                var result = await c.Create(activity);
            }
        }
Esempio n. 3
0
        public void WhenINavigateToToTheAddActivityPage()
        {
            ActivitiesController controller = CreateActivityController();

            LatestActionResult = controller.Create();
        }