public void CreateNewBusinessBase() { // create a new instance of BusinessBase var instance = new ConcreteBusinessBase(); // assert the instance is not null Assert.IsNotNull(instance); }
public void Id() { // create a new instance of BusinessBase var instance = new ConcreteBusinessBase(); // set a test id constant const int TestId = 5; // set the identifier of the instance to test id instance.Id = TestId; // ensure the property is equal to the constant Assert.AreEqual(TestId, instance.Id); }