Ejemplo n.º 1
0
        public void Test_LockedPeriod_CRUD()
        {
            #region Arrange
            //Add code to create required resources
            #endregion Arrange

            ILockedPeriodConnector connector = new LockedPeriodConnector();

            #region CREATE
            //Not Allowed
            #endregion CREATE

            #region UPDATE
            //Not Allowed
            #endregion UPDATE

            #region READ / GET

            var retrievedLockedPeriod = connector.Get();
            Assert.IsNotNull(retrievedLockedPeriod);

            Assert.IsNull(retrievedLockedPeriod.EndDate); //No period is locked

            #endregion READ / GET

            #region DELETE
            //Not Allowed
            #endregion DELETE

            #region Delete arranged resources
            //Add code to delete temporary resources
            #endregion Delete arranged resources
        }
Ejemplo n.º 2
0
        public void Test_LockedPeriod_Get()
        {
            var connector = new LockedPeriodConnector();
            var period    = connector.Get();

            MyAssert.HasNoError(connector);
            Assert.IsNotNull(period);
        }