コード例 #1
0
        public void CanEditObservations_VisitorCannotEditObservations_ReturnsFalse()
        {
            var observationOperations = new ObservationOperations();

            var result = observationOperations.CanEditRoles("Visitor");

            Assert.AreEqual(false, result);
        }
コード例 #2
0
        public void CanEditObservations_UserCanEditObservations_ReturnsTrue()
        {
            var observationOperations = new ObservationOperations();

            var result = observationOperations.CanEditRoles("User");

            Assert.AreEqual(true, result);
        }