コード例 #1
0
        public void WhenIsValidYearWithValidYear_ReturnsTrue()
        {
            var target = new VehicleManufacturerRepository();

            bool actual = target.IsValidYear(2010);

            Assert.True(actual);
        }
コード例 #2
0
        public void WhenIsValidYearWithInvalidYear_ReturnsFalse()
        {
            var target = new VehicleManufacturerRepository();

            bool actual = target.IsValidYear(3015);

            Assert.False(actual);
        }
        public void WhenIsValidYearWithInvalidYear_ReturnsFalse()
        {
            this.SetupResolverAndDatabase();
            VehicleManufacturerRepository target = new VehicleManufacturerRepository(this.dbContext);

            bool actual = target.IsValidYear(3015);

            Assert.False(actual);
        }
コード例 #4
0
        public void WhenIsValidYearWithValidYear_ReturnsTrue()
        {
            var target = new VehicleManufacturerRepository();

            bool actual = target.IsValidYear(2010);

            Assert.True(actual);
        }
コード例 #5
0
        public void WhenIsValidYearWithInvalidYear_ReturnsFalse()
        {
            var target = new VehicleManufacturerRepository();

            bool actual = target.IsValidYear(3015);

            Assert.False(actual);
        }