public override void SetUp() { base.SetUp(); valueModelMock = new Mock <Models.IDateTimeValueModel>(MockBehavior.Strict); // ignore Error handling for now valueModelMock.SetupGet(o => o.Error).Returns(String.Empty); valueModelMock.SetupGet(o => o.DateTimeStyle).Returns(DateTimeStyles.Date); valueModelMock.SetupProperty(o => o.Value); valueModelMock.SetupGet(o => o.Label).Returns("ValueLabel"); obj = new NullableMonthPropertyViewModel( scope.Resolve <IViewModelDependencies>(), scope.Resolve <BaseMemoryContext>(), null, valueModelMock.Object); }
public override void SetUp() { base.SetUp(); valueModelMock = new Mock<Models.IDateTimeValueModel>(MockBehavior.Strict); // ignore Error handling for now valueModelMock.SetupGet(o => o.Error).Returns(String.Empty); valueModelMock.SetupGet(o => o.DateTimeStyle).Returns(DateTimeStyles.Date); valueModelMock.SetupProperty(o => o.Value); valueModelMock.SetupGet(o => o.Label).Returns("ValueLabel"); obj = new NullableMonthPropertyViewModel( scope.Resolve<IViewModelDependencies>(), scope.Resolve<BaseMemoryContext>(), null, valueModelMock.Object); }