public void OnCreation_IfMatchHistoryIsEmpty_SetsMaxAndEndToEndOfToday()
        {
            // Arrange
            DateTime expected     = DateTime.Today + new TimeSpan(23, 59, 59);
            IProfile emptyProfile = new Fixtures.EmptyProfile();

            // Act
            RankPlotSettingViewModel vm = new RankPlotSettingViewModel(emptyProfile);

            // Assert
            Assert.AreEqual(expected, vm.EndDate);
            Assert.AreEqual(expected, vm.MaxDate);
        }
        public void OnCreation_IfMatchHistoryIsEmpty_SetsMinAndStartToMidnightOfToday()
        {
            // Arrange
            DateTime expected     = DateTime.Today + new TimeSpan(0, 0, 0);
            IProfile emptyProfile = new Fixtures.EmptyProfile();

            // Act
            RankPlotSettingViewModel vm = new RankPlotSettingViewModel(emptyProfile);

            // Assert
            Assert.AreEqual(expected, vm.StartDate);
            Assert.AreEqual(expected, vm.MinDate);
        }
예제 #3
0
        public virtual void Setup()
        {
            _defaultProfile   = new Fixtures.DefaultProfile();
            _alternateProfile = new Fixtures.OtherProfile();
            _emptyProfile     = new Fixtures.EmptyProfile();
            _messenger        = Messenger.Default;

            var profiles = new List <IProfile>()
            {
                _defaultProfile, _alternateProfile, _emptyProfile
            };

            _profileManager = ProfileManagerFaker.CreateSimpleManager(profiles, _messenger);
        }