Example #1
0
        public async Task Delete_Existing_Company_With_Employee()
        {
            //Arrange
            var isThrown = false;

            //Act
            var companyResult = await CompanyRepository.AddAsync(_newCompany);

            try
            {
                await CompanyRepository.DeleteAsync(companyResult.Id);
            }
            catch (Exception)
            {
                isThrown = true;
            }

            //Assert
            Assert.IsFalse(isThrown);
        }