SIL.FieldWorks.IText.SandboxBaseTests.MakeEntry C# (CSharp) Method

MakeEntry() private method

Make an entry with the specified lexeme form of the specified slot type, a sense with the specified gloss, an MSA with the specified part of speech, and generally hook things up as expected. Assumes all of the required objects need to be created; in general this might not be true, but it works for the test data here.
private MakeEntry ( string lf, string pos, System.Guid slotType, IMoMorphSynAnalysis &msa ) : ILexEntry
lf string
pos string
slotType System.Guid
msa IMoMorphSynAnalysis
return ILexEntry
		private ILexEntry MakeEntry(string lf, string pos, Guid slotType, out IMoMorphSynAnalysis msa)
		{
			// The entry itself.
			ILexEntry entry = Cache.ServiceLocator.GetInstance<ILexEntryFactory>().Create();
			// Lexeme Form and MSA.
			IMoForm form;
			msa = GetMsaAndMoForm(entry, slotType, pos, out form);
			entry.LexemeFormOA = form;
			form.Form.VernacularDefaultWritingSystem = MakeVernString(lf);
			form.MorphTypeRA = Cache.ServiceLocator.GetInstance<IMoMorphTypeRepository>().GetObject(slotType);
			return entry;
		}