public void Should_get_them_in_sequence()
 {
     //var accountServices = new AccountServices(_userRepository);
     var sut = new PreferenceServices(_repository);
     IList<Preference> prefs = sut.UserStrainPreferences(2, "M1", DateTime.Today.Year - 1);
     Assert.AreNotEqual(0, prefs.Count());
 }
 public void BreedersHaveMoreTraitsThanNonBreeders()
 {
     var sut = new PreferenceServices(_repository);
     List<Trait> breederList = sut.GetTraitList(true);
     List<Trait> commercialList = sut.GetTraitList(false);
     Assert.IsTrue(breederList.Count > commercialList.Count);
 }
        public void Should_get_the_input_type_for_each_trait()
        {
            var sut = new PreferenceServices(_repository);
            
            IList<Preference> prefs = sut.UserStrainPreferences(Testuserid, "M1", DateTime.Today.Year - 1);
            Assert.AreNotEqual(0, prefs.Count());

            // TODO: Ask john how to get EF to pull this in
            Assert.IsNotNull(prefs.First().Trait.InputType);


            Trait firstTrait = prefs.First().Trait;
            Assert.IsNotNull(_repository.GetTrait(firstTrait.TraitId).InputType);
            Assert.IsNotNull(firstTrait.InputType);
        }
 public void TraitListForNonBreeder()
 {
     var sut = new PreferenceServices(_repository);
     List<Trait> list = sut.GetTraitList(false);
     Assert.IsNotNull(list);
 }