public override void Setup() { base.Setup(); _fixture.Customize(new AccountCustomization()); _account = _fixture.CreateAnonymous<Mock<Account>>(); _session = _fixture.CreateAnonymous<RegistrationSession>(); }
public Account(IAccountManagerInternal accountManager) { Helper.GuardNotNull(accountManager); _manager = accountManager; Id = -1; _session = new RegistrationSession(this); _session.StateChanged += delegate { OnRegistrationStateChanged(); }; }
public override void Teardown() { base.Teardown(); _account = null; _session = null; }
public override void Setup() { base.Setup(); _account = _fixture.Freeze<Mock<IAccountInternal>>(); _session = _fixture.CreateAnonymous<RegistrationSession>(); }