public void ReturnsANewObservation()
        {
            //Arrange
            _controller = new ObservationsController(_serviceMock.Object);

            // Act
            var result = _controller.Create() as ViewResult;

            // Assert
            Assert.IsNotNull(result.Model);
        }
        public void CreatesANewObservation()
        {
            //Arrange
            _controller = new ObservationsController(_serviceMock.Object);

            var observation = new Observation()
                {
                    ObservationDate = DateTime.Now
                };

            // Act
            var result = _controller.Create(observation) as ViewResult;

            // Assert
            _serviceMock.Verify(x => x.AddObservation(observation), Times.Once());
        }