Ejemplo n.º 1
0
        public void TestCreateMFISuccess()
        {
            _mfiManager.DeleteMFI();

            bool result = _mfiManager.CreateMFI(_mfi);

            Assert.IsTrue(result);
        }
Ejemplo n.º 2
0
        public bool CreateMFI(MFI pMFI)
        {
            if (pMFI.Name == String.Empty)
            {
                throw new OpenCbsMfiExceptions(OpenCbsMFIExceptionEnum.NameIsEmpty);
            }

            if (pMFI.Login == String.Empty)
            {
                throw new OpenCbsMfiExceptions(OpenCbsMFIExceptionEnum.LoginIsNotFilled);
            }

            if (pMFI.Password == String.Empty)
            {
                throw new OpenCbsMfiExceptions(OpenCbsMFIExceptionEnum.PasswordIsNotFilled);
            }

            return(_MFIManager.CreateMFI(pMFI));
        }