void Setup_the_SUT() { DomainEventPublisherMock = new Moq.Mock<IPublishDomainEvents>(Moq.MockBehavior.Loose); State = new ProductState(DomainEventPublisherMock.Object); SUT = new Product(State); }
public void Init() { var state = new ProductState(null); SUT= state; state.ProductActivated(a_tenant_id, a_product_id, a_product_name, a_product_description); state.ProductActivated(another_tenant_id, another_product_id, another_product_name, another_product_description); }
void Setup_the_SUT_and_activate_the_tenants() { State = new ProductState(null); SUT = new Product(State); State.TenantActivated(a_tenant_id); State.TenantActivated(another_tenant_id); }