Amss.Boilerplate.Tests.Business.PartnerManagerTests.Delete C# (CSharp) Method

Delete() private method

private Delete ( ) : void
return void
        public void Delete()
        {
            var manager = this.Locator.GetInstance<IPartnerManager>();
            var instance = manager.Create(this.CreateTestPartner());

            manager.Delete(instance);

            Assert.Throws<ObjectNotFoundException>(() => manager.Load(instance.Id));
        }