Exemplo n.º 1
0
        public void DeleteContractTest()
        {
            var contracts = _ehrmannCore.GetContracts();

            Assert.IsNotEmpty(contracts, "Не удалось получить контракты");

            var contract = contracts.FirstOrDefault();

            if (contract != null)
            {
                var result = _ehrmannCore.DeleteContract(contract);
                Assert.IsTrue(result, $"Не удалось удалить контракт {contract.Id}");
            }
        }
Exemplo n.º 2
0
 public static bool DeleteContract(IEhrmannCore ehrmannCore, ICoreContract coreContract)
 {
     return(ehrmannCore.DeleteContract(coreContract));
 }